Commit 9ba82638 by Marco Otte-Witte Committed by Jon Yurek

added test for data uri without mime type

parent 44c10cc1
......@@ -8,6 +8,11 @@ class DataUriAdapterTest < Test::Unit::TestCase
end
end
should 'allow a missing mime-type' do
adapter = Paperclip.io_adapters.for("data:;base64,#{original_base64_content}")
assert_equal Paperclip::DataUriAdapter, adapter.class
end
context "a new instance" do
setup do
@contents = "data:image/png;base64,#{original_base64_content}"
......
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