Sha256: 92191fd246a941c8a899bfb8e5bce75692812ad28b677123d8114b2e9477df2c

Contents?: true

Size: 478 Bytes

Versions: 2

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.include Devise::Test::IntegrationHelpers, type: :request

  config.before(:each, with_signed_in_user: true) { login_as user }

  config.before(:each, with_guest_session: true) do
    # rubocop:disable RSpec/AnyInstance
    allow_any_instance_of(ActionDispatch::Cookies::CookieJar).to(
      receive(:signed).and_return({ guest_token: order.guest_token })
    )
    # rubocop:enable RSpec/AnyInstance
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_afterpay-0.2.0 spec/support/auth.rb
solidus_afterpay-0.1.0 spec/support/auth.rb