Need txt file in test.

This commit is contained in:
Marin Jankovski 2014-05-26 15:58:03 +02:00
parent 43e7b8fa07
commit 9b2a13497d

View file

@ -4,6 +4,7 @@ describe ProjectsController do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:user) { create(:user) } let(:user) { create(:user) }
let(:jpg) { fixture_file_upload(Rails.root + 'spec/fixtures/rails_sample.jpg', 'image/jpg') } let(:jpg) { fixture_file_upload(Rails.root + 'spec/fixtures/rails_sample.jpg', 'image/jpg') }
let(:txt) { fixture_file_upload(Rails.root + 'spec/fixtures/doc_sample.txt', 'text/plain') }
describe "POST #upload_image" do describe "POST #upload_image" do
before do before do