Sha256: 86de2b9ca41c522bc94a684cffdb6924c8930115eb31929dd48005487e2a1d24

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

class ActiveSupport::TestCase
  def self.should_redirect_to_thanks
    should_redirect_to("thank you page") { order_url(@order) }
  end
  def self.should_redirect_to_register
    should_redirect_to("registration") { register_order_checkout_url(@order) }
  end
  def self.should_redirect_to_first_step
    should_redirect_to("first step of checkout") { edit_order_checkout_url(@order) }
  end
  def self.should_redirect_to_authorization_failure
    should_redirect_to("login") { "/user_sessions/authorization_failure" }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree-0.11.4 test/shoulda_macros/should_redirect.rb
spree-0.11.3 test/shoulda_macros/should_redirect.rb
spree-0.11.2 test/shoulda_macros/should_redirect.rb
spree-0.11.1 test/shoulda_macros/should_redirect.rb
spree-0.11.0 test/shoulda_macros/should_redirect.rb
spree-0.10.2 test/shoulda_macros/should_redirect.rb
spree-0.10.1 test/shoulda_macros/should_redirect.rb
spree-0.10.0 test/shoulda_macros/should_redirect.rb
spree-0.10.0.beta test/shoulda_macros/should_redirect.rb