Commit c63ff08b by Prem Sichanugrist

Silent output in test, remove nonsense assertion

parent 28e2d1ba
...@@ -38,12 +38,14 @@ class PaperclipTest < Test::Unit::TestCase ...@@ -38,12 +38,14 @@ class PaperclipTest < Test::Unit::TestCase
Paperclip.logger = nil Paperclip.logger = nil
Paperclip.options[:logger] = nil Paperclip.options[:logger] = nil
end end
teardown do teardown do
Paperclip.options[:logger] = ActiveRecord::Base.logger Paperclip.options[:logger] = ActiveRecord::Base.logger
Paperclip.logger = ActiveRecord::Base.logger Paperclip.logger = ActiveRecord::Base.logger
end end
should "not raise an error when log is called" do should "not raise an error when log is called" do
assert_nothing_raised do silence_stream(STDOUT) do
Paperclip.log('something') Paperclip.log('something')
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment