Specify a fixture path relative to Rails.root to appease the Travis.
This commit is contained in:
parent
02fa065571
commit
39f876824a
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue