test/paperclip_test.rb in thoughtbot-paperclip-2.2.7 vs test/paperclip_test.rb in thoughtbot-paperclip-2.2.8
- old
+ new
@@ -89,21 +89,17 @@
end
@dummy = Dummy.new
end
should "not assign the avatar on mass-set" do
- @dummy.logger.expects(:debug)
-
@dummy.attributes = { :other => "I'm set!",
:avatar => @file }
assert_equal "I'm set!", @dummy.other
assert ! @dummy.avatar?
end
should "still allow assigment on normal set" do
- @dummy.logger.expects(:debug).times(0)
-
@dummy.other = "I'm set!"
@dummy.avatar = @file
assert_equal "I'm set!", @dummy.other
assert @dummy.avatar?