From ca4cc0b73c535fbbc29ca3ed4ca0f156c2d2a27d Mon Sep 17 00:00:00 2001 From: shields Date: Mon, 1 Aug 2022 05:50:32 +0900 Subject: [PATCH] Fix spec again --- spec/cancancan/model_adapters/mongoid_adapter_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/cancancan/model_adapters/mongoid_adapter_spec.rb b/spec/cancancan/model_adapters/mongoid_adapter_spec.rb index aec9f7a..75b3252 100644 --- a/spec/cancancan/model_adapters/mongoid_adapter_spec.rb +++ b/spec/cancancan/model_adapters/mongoid_adapter_spec.rb @@ -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')