diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-11 09:48:43 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-11 09:48:43 -0700 |
| commit | 50eaeae7ef98f66ed187ff8193d8b73dc390681b (patch) | |
| tree | 0794607f3a1f405834846aba7610bb00bc134654 /spec/controllers/api | |
| parent | 4f316113ce7a18ab44cdf9213a147d5b96236929 (diff) | |
load processed photos.
Diffstat (limited to 'spec/controllers/api')
| -rw-r--r-- | spec/controllers/api/v2/photos_controller_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/controllers/api/v2/photos_controller_spec.rb b/spec/controllers/api/v2/photos_controller_spec.rb index 70550ff4..0ed39995 100644 --- a/spec/controllers/api/v2/photos_controller_spec.rb +++ b/spec/controllers/api/v2/photos_controller_spec.rb @@ -4,11 +4,12 @@ module Api module V2 describe PhotosController do describe "#index" do - let!(:photo) { create(:photo) } + let!(:processed_photo) { create(:photo, image_processing: nil) } + let!(:unprocessed_photo) { create(:photo, image_processing: true) } - it 'should load all the photos' do + it 'loads all processed photos' do xhr :get, :index - expect(assigns(:photos)).to match_array([photo]) + expect(assigns(:photos)).to match_array([processed_photo]) end end |
