summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-05-10 16:49:50 -0600
committermo khan <mo@mokhan.ca>2013-05-10 16:49:50 -0600
commitb92cd7ff695ebb04325c918460ece412b02f1e09 (patch)
tree13bb5b751b423b585b1d5012766d659211e5de07
parent6e07da73cf27dd26b9b219ac01fef08320b7bccf (diff)
move image to fixtures folder
-rw-r--r--spec/controllers/avatars_controller_spec.rb2
-rw-r--r--spec/controllers/photos_controller_spec.rb2
-rw-r--r--spec/fixtures/images/gorilla.jpg (renamed from spec/support/gorilla.jpg)bin85527 -> 85527 bytes
3 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/avatars_controller_spec.rb b/spec/controllers/avatars_controller_spec.rb
index 09458f0e..d38c2eae 100644
--- a/spec/controllers/avatars_controller_spec.rb
+++ b/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 } }
diff --git a/spec/controllers/photos_controller_spec.rb b/spec/controllers/photos_controller_spec.rb
index 346b9e8f..bc174227 100644
--- a/spec/controllers/photos_controller_spec.rb
+++ b/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 }
diff --git a/spec/support/gorilla.jpg b/spec/fixtures/images/gorilla.jpg
index 946cdd40..946cdd40 100644
--- a/spec/support/gorilla.jpg
+++ b/spec/fixtures/images/gorilla.jpg
Binary files differ