Skip to content

Commit

Permalink
Fix spec again
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Jul 31, 2022
1 parent c8b3bb4 commit ca4cc0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/cancancan/model_adapters/mongoid_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
end

it 'returns the correct records when a mix of can and cannot rules in defined ability' do
@ability.can :manage, MongoidProject, title: 'Sir'
@ability.cannot :destroy, MongoidProject
@ability.can :manage, MongoidProject
@ability.cannot :destroy, MongoidProject, title: { '$in' => %w[Lord Dude] }

sir = MongoidProject.create(title: 'Sir')
MongoidProject.create(title: 'Lord')
Expand Down

0 comments on commit ca4cc0b

Please sign in to comment.