Commit 58e2c680 by Edward Holets

Switched log_error output stream to STDERR.

parent 9cdc06e4
...@@ -18,7 +18,7 @@ module Paperclip ...@@ -18,7 +18,7 @@ module Paperclip
end end
def self.log_error(error) def self.log_error(error)
puts error $stderr.puts error
end end
end end
end end
......
...@@ -53,7 +53,6 @@ class RakeTest < Test::Unit::TestCase ...@@ -53,7 +53,6 @@ class RakeTest < Test::Unit::TestCase
end end
::Rake::Task['paperclip:refresh:thumbnails'].execute ::Rake::Task['paperclip:refresh:thumbnails'].execute
end end
end end
context "when there is an error in reprocess!" do context "when there is an error in reprocess!" do
...@@ -91,7 +90,14 @@ class RakeTest < Test::Unit::TestCase ...@@ -91,7 +90,14 @@ class RakeTest < Test::Unit::TestCase
end end
::Rake::Task['paperclip:refresh:thumbnails'].execute ::Rake::Task['paperclip:refresh:thumbnails'].execute
end end
end
end
context "Paperclip::Task.log_error method" do
should "print its argument to STDERR" do
msg = 'Some Message'
$stderr.expects(:puts).with(msg)
Paperclip::Task.log_error(msg)
end end
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