Sha256: ae7bb0855916e766bd9a62ea9761445899cc7a750a17b1553855ebdaaee0a605
Contents?: true
Size: 651 Bytes
Versions: 34
Compression:
Stored size: 651 Bytes
Contents
require 'test_helper' module Workarea module Storefront class GuestBrowsingIntegrationTest < Workarea::IntegrationTest include Storefront::IntegrationTest def test_checkout_with_guest_browsing admin_user = create_user(password: 'W3bl1nc!', super_admin: true) post storefront.login_path, params: { email: admin_user.email, password: 'W3bl1nc!' } post admin.guest_browsing_path complete_checkout order = Order.placed.first assert_nil(order.user_id) assert('admin', order.source) assert(order.checkout_by_id, admin_user.id.to_s) end end end end
Version data entries
34 entries across 34 versions & 1 rubygems