From e514f722d55ba619b5b5eb92bd2b63a7cf9e3fb1 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Sat, 11 Apr 2020 08:56:45 -0400 Subject: [PATCH] Merge pull request #20067 from agrare/fix_missing_vmdb_persmission_stub Fix a missing permission stub in a spec (cherry picked from commit 5e3484340dd3f5777059ab3d42caa482cc977805) --- spec/models/ext_management_system_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/ext_management_system_spec.rb b/spec/models/ext_management_system_spec.rb index 5b8a5e763d0..fc82d66172a 100644 --- a/spec/models/ext_management_system_spec.rb +++ b/spec/models/ext_management_system_spec.rb @@ -92,9 +92,9 @@ end it "with removed permissions" do - stub_vmdb_permission_store_with_types(["ems-type:vmwarews"]) do - expect(described_class.supported_types).not_to include("vmwarews") - end + allow(Vmdb::PermissionStores.instance).to receive(:supported_ems_type?).and_return(true) + allow(Vmdb::PermissionStores.instance).to receive(:supported_ems_type?).with("vmwarews").and_return(false) + expect(described_class.supported_types).not_to include("vmwarews") end end