Photo controller fixed
This commit is contained in:
parent
7d7c39e3dc
commit
bb21361a6b
2 changed files with 2 additions and 2 deletions
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue