Skip to content
This repository
Browse code

Silent output in test, remove nonsense assertion

  • Loading branch information...
commit c63ff08baa8ed4392b8ea0e79e1b76f2e3e91bf1 1 parent 28e2d1b
Prem Sichanugrist sikachu authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 test/paperclip_test.rb
4 test/paperclip_test.rb
@@ -38,12 +38,14 @@ class PaperclipTest < Test::Unit::TestCase
38 38 Paperclip.logger = nil
39 39 Paperclip.options[:logger] = nil
40 40 end
  41 +
41 42 teardown do
42 43 Paperclip.options[:logger] = ActiveRecord::Base.logger
43 44 Paperclip.logger = ActiveRecord::Base.logger
44 45 end
  46 +
45 47 should "not raise an error when log is called" do
46   - assert_nothing_raised do
  48 + silence_stream(STDOUT) do
47 49 Paperclip.log('something')
48 50 end
49 51 end

0 comments on commit c63ff08

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