Permalink
Browse files

improved test assertion

  • Loading branch information...
1 parent 55c8a50 commit cff922915e9e6e6dfbd9ab6e1839161215c396b8 @stellard stellard committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/cancan/model_adapters/mongoid_adapter_spec.rb
@@ -160,7 +160,7 @@ class MongoidProject
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

0 comments on commit cff9229

Please sign in to comment.