spec/spec_helper.rb in carrierwave-ftp-0.2.1 vs spec/spec_helper.rb in carrierwave-ftp-0.2.2
- old
+ new
@@ -27,10 +27,10 @@
raise "#{path} file does not exist" unless File.exist?(file_path(filename))
t = Tempfile.new(filename)
FileUtils.copy_file(file_path(filename), t.path)
- t.stub!(:local_path => "",
+ t.stub(:local_path => "",
:original_filename => filename || fake_name,
:content_type => mime_type)
return t
end