Put photos create spec back in. I am not going to check who left it pending.

This commit is contained in:
Michael Sofaer 2010-12-04 17:18:08 -08:00
parent 4daebfd147
commit 3ca89bde57
2 changed files with 12 additions and 11 deletions

View file

@ -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

View file

@ -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