From 39f876824a9e70530271b162b3cb868b5eada3be Mon Sep 17 00:00:00 2001 From: Pistos Date: Mon, 7 Nov 2011 00:31:08 -0500 Subject: [PATCH] Specify a fixture path relative to Rails.root to appease the Travis. --- spec/controllers/photos_controller_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/controllers/photos_controller_spec.rb b/spec/controllers/photos_controller_spec.rb index 473bc450e..167f0d184 100644 --- a/spec/controllers/photos_controller_spec.rb +++ b/spec/controllers/photos_controller_spec.rb @@ -16,7 +16,13 @@ describe PhotosController do describe '#create' do before do - @params = {:photo => {:aspect_ids => "all"}, :qqfile => Rack::Test::UploadedFile.new("spec/fixtures/button.png", "image/png") } + @params = { + :photo => {:aspect_ids => "all"}, + :qqfile => Rack::Test::UploadedFile.new( + File.join( Rails.root, "spec/fixtures/button.png" ), + "image/png" + ) + } end it 'accepts a photo from a regular form submission' do