Commit b92cd7ff
Changed files (3)
spec
controllers
fixtures
images
spec/controllers/avatars_controller_spec.rb
@@ -7,7 +7,7 @@ describe AvatarsController do
describe :create do
context "when uploading a new avatar" do
- let(:image) { Rack::Test::UploadedFile.new('spec/support/gorilla.jpg', 'image/jpeg') }
+ let(:image) { Rack::Test::UploadedFile.new('spec/fixtures/images/gorilla.jpg', 'image/jpeg') }
before { post :create, :avatar => { :avatar => image } }
spec/controllers/photos_controller_spec.rb
@@ -10,7 +10,7 @@ describe PhotosController do
end
describe "POST create" do
- let(:image) { Rack::Test::UploadedFile.new("spec/support/gorilla.jpg", "image/jpeg") }
+ let(:image) { Rack::Test::UploadedFile.new("spec/fixtures/images/gorilla.jpg", "image/jpeg") }
before :each do
post :create, :creation_id => creation.id, :photo => { :image => image }
spec/support/gorilla.jpg → spec/fixtures/images/gorilla.jpg
File renamed without changes