spec/authority/abilities_spec.rb in authority-1.0.0 vs spec/authority/abilities_spec.rb in authority-1.1.0
- old
+ new
@@ -85,13 +85,13 @@
@ability_model.should respond_to(:authorizer)
end
# TODO: Nathan will comment more clearly in the future
# aka "don't memoize" (to prevent dirty models from contaminating authorization)
- it "should always create a new authorizer instance when accessing the authorizer" do
+ it "should always create a new authorizer instance when accessing the authorizer" do
@ability_model.class.authorizer.should_receive(:new).with(@ability_model).twice
2.times { @ability_model.authorizer }
end
-
+
end
end