spree_cmd 2.3.1 → 2.3.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d0825723081bf9bd1eccceeed48b0b910f18848
|
|
4
|
+
data.tar.gz: 05fe609b5a999f360166cc2f8c928cccce727d87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5f6253e45aa8e6c99bb7078e1a2e2d68a9a73a1bbab1b7a7ed8f6900b133e2494976fde7b888c30e543742165e6f6d03acb4119075807d74676356f568ae82f
|
|
7
|
+
data.tar.gz: 5354a0942102a9128219f1fbb4585aac200f7eba4bc977bda979feac48a57f6579a79a78df59a9b6dc901817fea689b4cb92804f7cdff35cf7b00e86cf9a41f2
|
data/lib/spree_cmd/extension.rb
CHANGED
|
@@ -36,6 +36,9 @@ require '<%= file_name %>/factories'
|
|
|
36
36
|
RSpec.configure do |config|
|
|
37
37
|
config.include FactoryGirl::Syntax::Methods
|
|
38
38
|
|
|
39
|
+
# Infer an example group's spec type from the file location.
|
|
40
|
+
config.infer_spec_type_from_file_location!
|
|
41
|
+
|
|
39
42
|
# == URL Helpers
|
|
40
43
|
#
|
|
41
44
|
# Allows access to Spree's routes in specs:
|
|
@@ -70,7 +73,7 @@ RSpec.configure do |config|
|
|
|
70
73
|
|
|
71
74
|
# Before each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
|
|
72
75
|
config.before :each do
|
|
73
|
-
DatabaseCleaner.strategy =
|
|
76
|
+
DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
|
|
74
77
|
DatabaseCleaner.start
|
|
75
78
|
end
|
|
76
79
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_cmd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Mar
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|