Commit 9b2a13497dfc1fc97ac5d84f4074729cda040e2a
1 parent
43e7b8fa
Exists in
spb-stable
and in
2 other branches
Need txt file in test.
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
spec/controllers/projects_controller_spec.rb
... | ... | @@ -4,6 +4,7 @@ describe ProjectsController do |
4 | 4 | let(:project) { create(:project) } |
5 | 5 | let(:user) { create(:user) } |
6 | 6 | let(:jpg) { fixture_file_upload(Rails.root + 'spec/fixtures/rails_sample.jpg', 'image/jpg') } |
7 | + let(:txt) { fixture_file_upload(Rails.root + 'spec/fixtures/doc_sample.txt', 'text/plain') } | |
7 | 8 | |
8 | 9 | describe "POST #upload_image" do |
9 | 10 | before do | ... | ... |