Commit e3556b9b by Jon Yurek

Test the odd chance that returns nil

parent 6f2ca932
......@@ -37,4 +37,10 @@ class ContentTypeDetectorTest < Test::Unit::TestCase
assert_equal "application/octet-stream", Paperclip::ContentTypeDetector.new(@filename).detect
end
end
should 'return a sensible default on the odd change that run returns nil' do
Paperclip.stubs(:run).returns(nil)
assert_equal "application/octet-stream",
Paperclip::ContentTypeDetector.new("windows").detect
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