Sha256: 7a935a70cb4f31ba71ba5187780ce59f57203b4f169c7ba77973d8a39b04ba5b

Contents?: true

Size: 477 Bytes

Versions: 34

Compression:

Stored size: 477 Bytes

Contents

require 'spec_helper'

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

  # Regression test for #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"
    expect { visit spree.root_path }.not_to raise_error
  end

end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
spree_frontend-3.0.6 spec/features/currency_spec.rb
spree_frontend-3.0.5 spec/features/currency_spec.rb
solidus_frontend-1.0.4 spec/features/currency_spec.rb
solidus_frontend-1.1.2 spec/features/currency_spec.rb
solidus_frontend-1.0.3 spec/features/currency_spec.rb
solidus_frontend-1.1.1 spec/features/currency_spec.rb
spree_frontend-3.0.4 spec/features/currency_spec.rb
spree_frontend-3.0.3 spec/features/currency_spec.rb
spree_frontend-3.0.2 spec/features/currency_spec.rb
spree_frontend-3.0.1 spec/features/currency_spec.rb
spree_frontend-3.0.0 spec/features/currency_spec.rb
spree_frontend-3.0.0.rc4 spec/features/currency_spec.rb
spree_frontend-3.0.0.rc3 spec/features/currency_spec.rb
spree_frontend-3.0.0.rc1 spec/features/currency_spec.rb