Skip to content
Browse files

Silent output in test, remove nonsense assertion

  • Loading branch information...
1 parent 28e2d1b commit c63ff08baa8ed4392b8ea0e79e1b76f2e3e91bf1 @sikachu sikachu committed Apr 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/paperclip_test.rb
View
4 test/paperclip_test.rb
@@ -38,12 +38,14 @@ class PaperclipTest < Test::Unit::TestCase
Paperclip.logger = nil
Paperclip.options[:logger] = nil
end
+
teardown do
Paperclip.options[:logger] = ActiveRecord::Base.logger
Paperclip.logger = ActiveRecord::Base.logger
end
+
should "not raise an error when log is called" do
- assert_nothing_raised do
+ silence_stream(STDOUT) do
Paperclip.log('something')
end
end

0 comments on commit c63ff08

Please sign in to comment.
Something went wrong with that request. Please try again.