Skip to content

Commit

Permalink
Need to pass current_order(true) when a user registers to fix promoti…
Browse files Browse the repository at this point in the history
…on_adjustments_spec.rb:408
  • Loading branch information
radar committed Feb 3, 2012
1 parent 43589e9 commit 1c9b99d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -18,7 +18,7 @@ def create
if resource.save
set_flash_message(:notice, :signed_up)
sign_in(:user, @user)
fire_event('spree.user.signup', :user => @user)
fire_event('spree.user.signup', :user => @user, :order => current_order(true))
sign_in_and_redirect(:user, @user)
else
clean_up_passwords(resource)
Expand Down

0 comments on commit 1c9b99d

Please sign in to comment.