Skip to content

Commit

Permalink
Specs
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Apr 7, 2017
1 parent 6663103 commit e314f31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/lib/rbac/filterer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
end
end

context 'when class does not participate in RBAC' do
let(:miq_ae_domain) { FactoryGirl.create(:miq_ae_domain) }

it 'returns same class as input' do
User.with_user(admin_user) do
results = described_class.search(:targets => [miq_ae_domain]).first
expect(results.first).to be_an_instance_of(MiqAeDomain)
expect(results).to match_array [miq_ae_domain]
end
end
end

describe "with find_options_for_tenant filtering" do
before do
owned_vm # happy path
Expand Down

0 comments on commit e314f31

Please sign in to comment.