Skip to content

Commit e2a320b

Browse files
authored
Merge pull request #653 from d-m-u/rename_factory_girl
rename remaining factorygirl to factorybot
2 parents e97fd34 + 21226f8 commit e2a320b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

spec/models/manageiq/providers/openstack/cloud_manager/provision/configuration_spec.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
:cloud_network_selection_method => "network",
1919
:cloud_network => [@net1.id, @net1.name]
2020
})
21-
@port_task = FactoryGirl.create(:miq_provision_openstack,
22-
:source => @template,
23-
:destination => @vm,
24-
:state => 'pending',
25-
:status => 'Ok',
26-
:options => {
27-
:src_vm_id => @template.id,
28-
:cloud_network_selection_method => "port",
29-
:network_port => [@port.id, @port.name]
30-
})
3121
allow(@task).to receive_messages(:miq_request => double("MiqRequest").as_null_object)
22+
@port_task = FactoryBot.create(:miq_provision_openstack,
23+
:source => @template,
24+
:destination => @vm,
25+
:state => 'pending',
26+
:status => 'Ok',
27+
:options => {
28+
:src_vm_id => @template.id,
29+
:cloud_network_selection_method => "port",
30+
:network_port => [@port.id, @port.name]
31+
})
3232
end
3333

3434
it "sets nic from dialog" do

0 commit comments

Comments
 (0)