spec/features/currency_spec.rb in solidus_frontend-1.2.3 vs spec/features/currency_spec.rb in solidus_frontend-1.3.0.beta1
- old
+ new
@@ -1,10 +1,11 @@
require 'spec_helper'
-describe "Switching currencies in backend", :type => :feature do
+describe "Switching currencies in backend", type: :feature do
before do
- create(:base_product, :name => "RoR Mug")
+ 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
@@ -12,7 +13,6 @@
click_button "Add To Cart"
# Now that we have an order...
Spree::Config[:currency] = "AUD"
visit spree.root_path
end
-
end