Commit 2ed50fb3 by pierallard Committed by Jon Yurek

Syntax from Hound notes

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