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