FIX: don't mess with fixtures when running the specs

This commit is contained in:
Régis Hanol
2014-07-14 17:34:23 +02:00
parent 186ce78cb5
commit b5c57fa947
8 changed files with 18 additions and 13 deletions

View File

@ -15,14 +15,14 @@ describe UploadsController do
let(:logo) do
ActionDispatch::Http::UploadedFile.new({
filename: 'logo.png',
tempfile: File.new("#{Rails.root}/spec/fixtures/images/logo.png")
tempfile: file_from_fixtures("logo.png")
})
end
let(:logo_dev) do
ActionDispatch::Http::UploadedFile.new({
filename: 'logo-dev.png',
tempfile: File.new("#{Rails.root}/spec/fixtures/images/logo-dev.png")
tempfile: file_from_fixtures("logo-dev.png")
})
end