Put photos create spec back in. I am not going to check who left it pending.
This commit is contained in:
parent
4daebfd147
commit
3ca89bde57
2 changed files with 12 additions and 11 deletions
|
|
@ -34,6 +34,8 @@ class PhotosController < ApplicationController
|
||||||
def create
|
def create
|
||||||
begin
|
begin
|
||||||
|
|
||||||
|
raise unless params[:photo][:aspect_ids]
|
||||||
|
|
||||||
if params[:photo][:aspect_ids] == "all"
|
if params[:photo][:aspect_ids] == "all"
|
||||||
params[:photo][:aspect_ids] = current_user.aspects.collect{|x| x.id}
|
params[:photo][:aspect_ids] = current_user.aspects.collect{|x| x.id}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,7 @@ describe PhotosController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'can make a photo' do
|
it 'can make a photo' do
|
||||||
pending
|
proc{ post :create, :photo => {:user_file => image, :aspect_ids => "all"} }.should change(Photo, :count).by(1)
|
||||||
proc{ post :create, :qqfile => fixture_name }.should change(Photo, :count).by(1)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue