Commit 7b5a71a1 by Dan Collis-Puro Committed by Jon Yurek

Calculate data-uri file names off the validated content-type

parent f785f0e6
......@@ -14,8 +14,8 @@ class DataUriAdapterTest < Test::Unit::TestCase
@subject = Paperclip.io_adapters.for(@contents)
end
should "return a file name" do
assert_equal "base64.txt", @subject.original_filename
should "returns a file name based on the content type" do
assert_equal "data.png", @subject.original_filename
end
should "return a content type" do
......
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