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.25 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.24 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.23 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.22 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.21 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.20 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.19 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.18 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.17 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.16 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.15 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.14 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.13 test/integration/workarea/storefront/current_checkout_integration_test.rb
workarea-storefront-3.4.12 test/integration/workarea/storefront/current_checkout_integration_test.rb