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