Skip to content

Commit

Permalink
Merge pull request #20067 from agrare/fix_missing_vmdb_persmission_stub
Browse files Browse the repository at this point in the history
Fix a missing permission stub in a spec

(cherry picked from commit 5e34843)
  • Loading branch information
Fryguy authored and simaishi committed Apr 16, 2020
1 parent 92c8b5e commit e514f72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/ext_management_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e514f72

Please sign in to comment.