Commit 2ed50fb3 by pierallard Committed by Jon Yurek

Syntax from Hound notes

parent 2d27143f
...@@ -44,14 +44,14 @@ describe Paperclip::MediaTypeSpoofDetector do ...@@ -44,14 +44,14 @@ describe Paperclip::MediaTypeSpoofDetector do
end end
end end
it "does allow array as :content_type_mappings" do it 'does allow array as :content_type_mappings' do
begin begin
Paperclip.options[:content_type_mappings] = { Paperclip.options[:content_type_mappings] = {
html: ["binary", "text/html"] html: ['binary', 'text/html']
} }
file = File.open(fixture_file("empty.html")) file = File.open(fixture_file('empty.html'))
spoofed = Paperclip::MediaTypeSpoofDetector. spoofed = Paperclip::MediaTypeSpoofDetector
using(file, "empty.html").spoofed? .using(file, 'empty.html').spoofed?
assert !spoofed assert !spoofed
ensure ensure
Paperclip.options[:content_type_mappings] = {} Paperclip.options[:content_type_mappings] = {}
......
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