Skip to content

Commit

Permalink
Set "source" on the ems custom attribute by using the factory
Browse files Browse the repository at this point in the history
Without this, the source is set to nil and the ems custom attribute
may not be persisted correctly, causing a test failure.
  • Loading branch information
jrafanie committed Aug 2, 2024
1 parent 04ce526 commit 9a50664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/vm_infra_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

let(:custom_attr1) do
FactoryBot.create(
:custom_attribute,
:ems_custom_attribute,
:resource => vm_vmware,
:name => 'Proč by si jeden nepokrad',
:value => 'jó, v tom je Pepa demokrat'
Expand All @@ -65,7 +65,7 @@

let(:custom_attr2) do
FactoryBot.create(
:custom_attribute,
:ems_custom_attribute,
:resource => vm_vmware,
:name => nil,
:value => 'a šikulovi má být dána šance'
Expand Down

0 comments on commit 9a50664

Please sign in to comment.