spec/spec_helper.rb in t_bird-0.0.2 vs spec/spec_helper.rb in t_bird-0.0.3

- old
+ new

@@ -22,12 +22,14 @@ def sample_file File.expand_path('../sample.jpg', __FILE__) end def upload_file - Rack::Test::UploadedFile.new(sample_file, 'image/jpeg') - end + upload = Rack::Test::UploadedFile.new(sample_file, 'image/jpeg') - def upload_filedata - upload_file.read + { + filename: upload.original_filename, + type: upload.content_type, + tempfile: upload.instance_variable_get(:@tempfile) + } end end