spec/unit/ability_spec.rb in hydra-access-controls-5.0.0.pre4 vs spec/unit/ability_spec.rb in hydra-access-controls-5.0.0.pre6
- old
+ new
@@ -24,10 +24,9 @@
context "for a not-signed in user" do
before do
User.any_instance.stub(:email).and_return(nil)
User.any_instance.stub(:new_record?).and_return(true)
- User.any_instance.stub(:is_being_superuser?).and_return(false)
end
subject { Ability.new(nil) }
it "should call custom_permissions" do
Ability.any_instance.should_receive(:custom_permissions)
subject.can?(:delete, 7)