Skip to content

Commit 603da04

Browse files
committed
Use provider specific factories where required
1 parent 6698511 commit 603da04

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

spec/lib/manageiq/deep_delete_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
RSpec.describe ManageIQ::DeepDelete do
2-
let(:ems) { FactoryBot.create(:ems_container) }
2+
let(:ems) { FactoryBot.create(:ems_container) }
33
let(:ems_other) { FactoryBot.create(:ems_container) }
44

55
it "calls destroy for objects with ruby callbacks" do
6-
expect_any_instance_of(ems.class).to receive(:destroy)
7-
86
described_class.delete(ems)
7+
expect(ems).to be_deleted
8+
expect(ems_other).not_to be_deleted
99
end
1010

1111
it "deletes Ems#has_many" do

spec/models/manageiq/providers/cloud_manager/provision_workflow_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
include Spec::Support::WorkflowHelper
33

44
let(:admin) { FactoryBot.create(:user_with_group) }
5-
let(:ems) { FactoryBot.create(:ems_cloud) }
5+
let(:ems) { FactoryBot.create(:ems_amazon) }
66
let(:network_manager) { ems.network_manager }
77
let(:template) { FactoryBot.create(:miq_template, :name => "template", :ext_management_system => ems) }
88

spec/models/manageiq/providers/inventory/persister/local_db_finders_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
######################################################################################################################
1515
#
1616
before do
17-
@ems = FactoryBot.create(:ems_cloud)
17+
@ems = FactoryBot.create(:ems_amazon)
1818
end
1919

2020
before do

spec/models/manageiq/providers/inventory/persister/serializing_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
######################################################################################################################
1212
#
1313
before do
14-
@ems = FactoryBot.create(:ems_cloud)
14+
@ems = FactoryBot.create(:ems_amazon)
1515
end
1616

1717
it "tests we can serialize inventory object with nested lazy references" do

0 commit comments

Comments
 (0)