Paypal is now working
This commit is contained in:
@@ -181,7 +181,7 @@ end
|
||||
|
||||
Then (/^my registration (should( not)? be|is( not)?) (confirmed|completed?|paid)$/) do |state, x, y, field|
|
||||
ConferenceRegistration.find_by!(:email => @last_email_entered).
|
||||
send(field == 'confirmed' ? 'is_confirmed' : (field == 'paid' ? 'payment_info' : field)).
|
||||
send(field == 'confirmed' ? 'is_confirmed' : (field == 'paid' ? 'registration_fees_paid' : field)).
|
||||
send(state =~ / not/ ? 'should_not' : 'should', be)
|
||||
end
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@ module NavigationHelpers
|
||||
path = "/conferences/bikebike/#{@last_conference.slug}/register/confirm/#{@last_registration.confirmation_token}"
|
||||
when /^pay registration$/i
|
||||
path = "/conferences/bikebike/#{@last_conference.slug}/register/pay-registration/#{@last_registration.confirmation_token}"
|
||||
when /^confirm payment$/i
|
||||
path = "/conferences/bikebike/#{@last_conference.slug}/register/confirm-payment/#{@last_registration.payment_confirmation_token}"
|
||||
when /^cancel payment$/i
|
||||
path = "/conferences/bikebike/#{@last_conference.slug}/register/cancel-payment/#{@last_registration.confirmation_token}"
|
||||
when /^paypal confirm$/i
|
||||
path = "/conferences/bikebike/#{@last_conference.slug}/register/paypal-confirm/#{@last_registration.payment_confirmation_token}"
|
||||
when /^paypal cancel$/i
|
||||
path = "/conferences/bikebike/#{@last_conference.slug}/register/paypal-cancel/#{@last_registration.confirmation_token}"
|
||||
when /^translation list$/i
|
||||
path = '/translations/'
|
||||
when /^(.+) translations?$/i
|
||||
|
||||
Reference in New Issue
Block a user