Specify a fixture path relative to Rails.root to appease the Travis.

This commit is contained in:
Pistos 2011-11-07 00:31:08 -05:00
parent 02fa065571
commit 39f876824a

View file

@ -16,7 +16,13 @@ describe PhotosController do
describe '#create' do describe '#create' do
before 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 end
it 'accepts a photo from a regular form submission' do it 'accepts a photo from a regular form submission' do