spree_dev_tools 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6c7554334f07c6ba8b5fa037edd0fcbcc517eed00f5d0f0e53ce1f7b3b20cdd
4
- data.tar.gz: dd003bbbcd1c4fc1b9eecacd6d9b92f7ba93c3fcdcf8872a474a8e3d4b1486db
3
+ metadata.gz: bf2e6dd8609fbf03e15ce58a0acb61081486773028657b10269b8c021f82730a
4
+ data.tar.gz: 95acaa105573cc1f0086f7965b3c0d533dc7bbee3fdc8072c83a51e7b2d0493d
5
5
  SHA512:
6
- metadata.gz: 962a0a90f6443583f236d120ea304139ec33207bb21e7f694be189860bb1efc7779d6bd77fe758cf425f4ed161a4d8e663aef1f21837bac26cea811da93f780c
7
- data.tar.gz: 50f17ffaa21474ac05cfcc1e7277e0eccc56da1f555cbf826b85fee1d8af5cf6a6ce7fe1be75234d44d400bf7e7b3d9b47866b1e1774f836169310089a5efbd0
6
+ metadata.gz: 8bfb35322152cd6e145f2abbac2c2ab872e230d2b6b8133660703698a042a4ac85cd8fab1f831341943b3e5cdea4836d5c468dc2ffe7e6f432ed079b56467ae5
7
+ data.tar.gz: dd1469f24c46415952756514c42ef2cd562760e9df92adce1cad63fe7c55f6fd638568bcd2b3848143d1cd5b0b27ef59e2616cfb159fa8df67256185495e32d6
@@ -58,9 +58,17 @@ RSpec.configure do |config|
58
58
 
59
59
  config.before :each do
60
60
  Rails.cache.clear
61
- reset_spree_preferences do |config|
62
- # config.my_custom_preference = 10
61
+
62
+ country = create(:country, name: 'United States of America', iso_name: 'UNITED STATES', iso: 'US', states_required: true)
63
+
64
+ reset_spree_preferences do |spree_config|
65
+ spree_config.default_country_id = country.id
66
+ end
67
+
68
+ if Spree.version.to_f >= 4.2
69
+ create(:store, default: true, default_country: country)
70
+ else
71
+ create(:store, default: true)
63
72
  end
64
- create(:store)
65
73
  end
66
74
  end
@@ -1,5 +1,5 @@
1
1
  module SpreeDevTools
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
 
4
4
  # Returns the version of the currently loaded SpreeDevTools as a
5
5
  # <tt>Gem::Version</tt>.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_dev_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spark Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-20 00:00:00.000000000 Z
11
+ date: 2021-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal