improved test assertion
This commit is contained in:
		
							parent
							
								
									55c8a5045b
								
							
						
					
					
						commit
						cff922915e
					
				@ -160,7 +160,7 @@ if ENV["MODEL_ADAPTER"] == "mongoid"
 | 
				
			|||||||
        obj2 = MongoidProject.create(:bar => 2)
 | 
					        obj2 = MongoidProject.create(:bar => 2)
 | 
				
			||||||
        @ability.can :read, MongoidProject
 | 
					        @ability.can :read, MongoidProject
 | 
				
			||||||
        @ability.cannot :read, MongoidProject, :bar => 2
 | 
					        @ability.cannot :read, MongoidProject, :bar => 2
 | 
				
			||||||
        MongoidProject.accessible_by(@ability, :read).entries.first.should == obj
 | 
					        MongoidProject.accessible_by(@ability, :read).entries.should == [obj]
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      it "should combine the rules" do
 | 
					      it "should combine the rules" do
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user