Sha256: 389a7a1f2f3785315f89046e8473b14600f2f5f078c8c8f46c51d0c0a3e1349c

Contents?: true

Size: 768 Bytes

Versions: 34

Compression:

Stored size: 768 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    class CurrentCheckoutIntegrationTest < Workarea::IntegrationTest
      class CurrentCheckoutController < Storefront::ApplicationController
        def test
          current_order.save if params[:save]
          head :ok
        end
      end

      setup do
        Rails.application.routes.prepend do
          get 'current_checkout_test', to: "#{CurrentCheckoutController.controller_path}#test"
        end

        Rails.application.reload_routes!
      end

      def test_current_order
        get '/current_checkout_test'
        assert(session[:order_id].blank?)

        get '/current_checkout_test', params: { save: true }
        assert(session[:order_id].present?)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-storefront-3.4.45 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.44 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.43 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.42 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.41 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.40 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.39 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.38 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.37 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.36 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.35 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.34 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.33 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.32 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.31 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.30 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.29 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.28 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.27 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.26 test/integration/workarea/storefront/current_checkout_integration_test.rb