spec/paperclip/tempfile_factory_spec.rb in kt-paperclip-5.4.0 vs spec/paperclip/tempfile_factory_spec.rb in kt-paperclip-6.2.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'spec_helper' +require "spec_helper" describe Paperclip::TempfileFactory do it "is able to generate a tempfile with the right name" do file = subject.generate("omg.png") assert File.extname(file.path), "png" @@ -15,17 +15,17 @@ file = subject.generate("omg.png~") assert File.extname(file.path), "png" end it "is able to generate a tempfile from a file with a really long name" do - filename = "#{"longfilename" * 100}.png" + filename = "#{'longfilename' * 100}.png" file = subject.generate(filename) assert File.extname(file.path), "png" end - it 'is able to take nothing as a parameter and not error' do - file = subject.generate - assert File.exist?(file.path) + it "is able to take nothing as a parameter and not error" do + file = subject.generate + assert File.exist?(file.path) end it "does not throw Errno::ENAMETOOLONG when it has a really long name" do expect { subject.generate("o" * 255) }.to_not raise_error end