Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
improved test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
stellard committed Jan 18, 2011
1 parent 55c8a50 commit cff9229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/cancan/model_adapters/mongoid_adapter_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit cff9229

Please sign in to comment.