Skip to content

Commit

Permalink
Refactored create_person a little
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Sep 13, 2008
1 parent c45cede commit 7c1f457
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/controllers/people_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@
private

def create_person(options = {})
post :create, :person => { :name => "Quire",:email => '[email protected]',
:password => 'quux', :password_confirmation => 'quux' }.merge(options)
person_hash = { :name => "Quire", :email => '[email protected]',
:password => 'quux', :password_confirmation => 'quux' }
post :create, :person => person_hash.merge(options)
assigns(:person)
end
end

0 comments on commit 7c1f457

Please sign in to comment.