diff --git a/spec/cancan/model_adapters/mongoid_adapter_spec.rb b/spec/cancan/model_adapters/mongoid_adapter_spec.rb index 60fa2d1..9281c73 100644 --- a/spec/cancan/model_adapters/mongoid_adapter_spec.rb +++ b/spec/cancan/model_adapters/mongoid_adapter_spec.rb @@ -160,7 +160,7 @@ if ENV["MODEL_ADAPTER"] == "mongoid" obj2 = MongoidProject.create(:bar => 2) @ability.can :read, MongoidProject @ability.cannot :read, MongoidProject, :bar => 2 - MongoidProject.accessible_by(@ability, :read).entries.first.should == obj + MongoidProject.accessible_by(@ability, :read).entries.should == [obj] end it "should combine the rules" do