Skip to content

Commit

Permalink
fix specs for provider permissions. #377
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 18, 2019
1 parent acdd5f1 commit 4b9d057
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/ability_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
let(:token){ User.generate_token(role_id: "user") }

it{ is_expected.to be_able_to(:read, user) }
it{ is_expected.to be_able_to(:read, provider) }

it{ is_expected.not_to be_able_to(:read, provider) }
it{ is_expected.not_to be_able_to(:create, provider) }
it{ is_expected.not_to be_able_to(:update, provider) }
it{ is_expected.not_to be_able_to(:destroy, provider) }
Expand All @@ -54,8 +54,8 @@
let(:token){ User.generate_token(role_id: "client_admin", provider_id: provider.symbol.downcase, client_id: client.symbol.downcase) }

it{ is_expected.to be_able_to(:read, user) }
it{ is_expected.to be_able_to(:read, provider) }

it{ is_expected.not_to be_able_to(:read, provider) }
it{ is_expected.not_to be_able_to(:create, provider) }
it{ is_expected.not_to be_able_to(:update, provider) }
it{ is_expected.not_to be_able_to(:destroy, provider) }
Expand Down Expand Up @@ -86,8 +86,8 @@
let(:token){ User.generate_token(role_id: "client_user", provider_id: provider.symbol.downcase, client_id: client.symbol.downcase) }

it{ is_expected.to be_able_to(:read, user) }
it{ is_expected.to be_able_to(:read, provider) }

it{ is_expected.not_to be_able_to(:read, provider) }
it{ is_expected.not_to be_able_to(:create, provider) }
it{ is_expected.not_to be_able_to(:update, provider) }
it{ is_expected.not_to be_able_to(:destroy, provider) }
Expand Down

0 comments on commit 4b9d057

Please sign in to comment.