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

@ -103,7 +103,7 @@ describe CategoriesController do
describe "logged in" do
let!(:user) { log_in(:admin) }
let(:logo) { File.new("#{Rails.root}/spec/fixtures/images/logo.png") }
let(:logo) { file_from_fixtures("logo.png") }
let(:upload) do
ActionDispatch::Http::UploadedFile.new({ filename: 'logo.png', tempfile: logo })
end