solidus_dev_support 2.4.2 → 2.4.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c114329424b9f471d8ac9c41c3d757a788b32b3bcdf57b383f9f6400a6a66881
|
4
|
+
data.tar.gz: 99668378fb9a6124a2f3b21df7311179466411b58de431814e15af78bcac2690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffb1dd05af39f72148c299ac03616837a215e7b4754871f2bfc078e9a14e458dd89e351c5ad29450e61f068cc5baca6c614b8d2caeee4e46b30ccc9758616d7d
|
7
|
+
data.tar.gz: a7d4466e3fbec9e9d6a18f9a6cfc6bd28da198aaeb7cdce2104cd0c4c0349b78abf1b2165ef9aef8ad9a1d746ad9caaa49bd2737888ff049e160029e4fcac946
|
@@ -42,10 +42,17 @@ bundle exec rubocop
|
|
42
42
|
```
|
43
43
|
|
44
44
|
When testing your application's integration with this extension you may use its factories.
|
45
|
-
Simply add this require statement to your spec_helper
|
45
|
+
Simply add this require statement to your `spec/spec_helper.rb`:
|
46
46
|
|
47
47
|
```ruby
|
48
|
-
require '<%= file_name %>/factories'
|
48
|
+
require '<%= file_name %>/testing_support/factories'
|
49
|
+
```
|
50
|
+
|
51
|
+
Or, if you are using `FactoryBot.definition_file_paths`, you can load Solidus core
|
52
|
+
factories along with this extension's factories using this statement:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
SolidusDevSupport::TestingSupport::Factories.load_for(<%= class_name %>::Engine)
|
49
56
|
```
|
50
57
|
|
51
58
|
### Running the sandbox
|
@@ -55,6 +55,8 @@ module SolidusDevSupport
|
|
55
55
|
is only used to load ./factories content.
|
56
56
|
WARN
|
57
57
|
|
58
|
+
engine.root.glob('lib/*/testing_support/factories/**/*_factory.rb')
|
59
|
+
elsif factories_file_or_folder.first.directory?
|
58
60
|
engine.root.glob('lib/*/testing_support/factories/**/*_factory.rb')
|
59
61
|
else
|
60
62
|
factories_file_or_folder
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_dev_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|