Sha256: 85357dd26241279dad16db4dadae4684ed2c186c2958c9cdc00c3bcc8739f69e

Contents?: true

Size: 527 Bytes

Versions: 33

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe "Switching currencies in backend", type: :feature do
  before do
    create(:store)
    create(:base_product, name: "RoR Mug")
  end

  # Regression test for https://github.com/spree/spree/issues/2340
  it "does not cause current_order to become nil", inaccessible: true do
    visit spree.root_path
    click_link "RoR Mug"
    click_button "Add To Cart"
    # Now that we have an order...
    Spree::Config[:currency] = "AUD"
    visit spree.root_path
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
solidus_frontend-2.8.6 spec/features/currency_spec.rb
solidus_frontend-2.6.6 spec/features/currency_spec.rb
solidus_frontend-2.7.4 spec/features/currency_spec.rb
solidus_frontend-2.8.5 spec/features/currency_spec.rb
solidus_frontend-2.7.3 spec/features/currency_spec.rb
solidus_frontend-2.6.5 spec/features/currency_spec.rb
solidus_frontend-2.8.4 spec/features/currency_spec.rb
solidus_frontend-2.8.3 spec/features/currency_spec.rb
solidus_frontend-2.7.2 spec/features/currency_spec.rb
solidus_frontend-2.6.4 spec/features/currency_spec.rb
solidus_frontend-2.8.2 spec/features/currency_spec.rb
solidus_frontend-2.8.1 spec/features/currency_spec.rb
solidus_frontend-2.6.3 spec/features/currency_spec.rb
solidus_frontend-2.8.0 spec/features/currency_spec.rb
solidus_frontend-2.7.1 spec/features/currency_spec.rb
solidus_frontend-2.6.2 spec/features/currency_spec.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.14 spec/features/currency_spec.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.13 spec/features/currency_spec.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.12 spec/features/currency_spec.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.11 spec/features/currency_spec.rb