solidus_support 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/solidus_support/extension/rails_helper.rb +6 -9
- data/lib/solidus_support/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5f38daae0fcb1b2de8343abb23d59c80e553fd0e1c72c3d15e11414862ad8b05
|
|
4
|
+
data.tar.gz: b5f61ace5703a2dcf5e03775e4ea22db6a116a19b21ce803c819153dad7d7080
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c920bb64d3fc147e2e86ca8edbe7356bff0273b98af6f08d45448dcdaa218b1a812f3f54a9d7bfe7cd26d4ad2091b67335bee21fa4453863f81d2e23b2dfb794
|
|
7
|
+
data.tar.gz: 6544d8cd2a38174b015871c4e267e8e92ab565e1a73483047e2a817f296875087d2de00f2f776576c971c2c6a16e068d5153536232606ad38501a2f4874e498e
|
|
@@ -25,21 +25,18 @@ RSpec.configure do |config|
|
|
|
25
25
|
|
|
26
26
|
config.include Spree::TestingSupport::Preferences
|
|
27
27
|
|
|
28
|
-
# Ensure Suite is set to use transactions for speed.
|
|
29
28
|
config.before :suite do
|
|
30
29
|
DatabaseCleaner.clean_with :truncation
|
|
31
30
|
end
|
|
32
31
|
|
|
33
|
-
#
|
|
34
|
-
config.
|
|
32
|
+
# Around each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
|
|
33
|
+
config.around(:each) do |example|
|
|
35
34
|
DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
|
|
36
|
-
DatabaseCleaner.start
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
DatabaseCleaner.cleaning do
|
|
37
|
+
reset_spree_preferences
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
DatabaseCleaner.clean
|
|
39
|
+
example.run
|
|
40
|
+
end
|
|
44
41
|
end
|
|
45
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidus_support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Hawthorn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
version: '0'
|
|
76
76
|
requirements: []
|
|
77
77
|
rubyforge_project:
|
|
78
|
-
rubygems_version: 2.6
|
|
78
|
+
rubygems_version: 2.7.6
|
|
79
79
|
signing_key:
|
|
80
80
|
specification_version: 4
|
|
81
81
|
summary: A common functionality for solidus extensions
|