Commit 58e2c680 by Edward Holets

Switched log_error output stream to STDERR.

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