Photo controller fixed

This commit is contained in:
Raphael 2010-07-17 18:13:51 -07:00
parent 7d7c39e3dc
commit bb21361a6b
2 changed files with 2 additions and 2 deletions

View file

@ -7,6 +7,7 @@ class PhotosController < ApplicationController
def create
@photo = Photo.new(params[:photo])
@photo.person = current_user
if @photo.save
flash[:notice] = "Successfully uploaded photo."

View file

@ -31,9 +31,8 @@ describe Photo do
it 'should save a signed photo to GridFS' do
photo = Photo.new(:person => @user)
photo.image = File.open(@fixture_name)
#photo.creator_signature = photo.send(:sign)
photo.verify_creator_signature.should be true
photo.save.should == true
photo.verify_creator_signature.should be true
end
end