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 +4 -4
- data/lib/spree_dev_tools/rspec/support/spree.rb +11 -3
- data/lib/spree_dev_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf2e6dd8609fbf03e15ce58a0acb61081486773028657b10269b8c021f82730a
|
4
|
+
data.tar.gz: 95acaa105573cc1f0086f7965b3c0d533dc7bbee3fdc8072c83a51e7b2d0493d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
62
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2021-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|