factory_bot 6.5.3 → 6.5.4
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 +4 -4
- data/NEWS.md +4 -0
- data/lib/factory_bot/definition_proxy.rb +3 -3
- data/lib/factory_bot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0658ea1fd8d3b33128d6a88be3b64855cf80238bc0d2bf109f85a59b4398504f'
|
4
|
+
data.tar.gz: 1cc9fb919e03d2ad95589e5519b19b1c8bd0ec1b6d0e45ee6479ff6d8f2541ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '092799b8ba784bb640a2422ff8556d5c13c92a67b8224bd4730c4b2791995d4f56797ccf2815416e2fb21a474c41b47cc87df61564adae4cb3d0dc832c22f520'
|
7
|
+
data.tar.gz: 1cc5060b814c06ed943ed825df2b913fb857b118837a850152f7b9044328de0a277f112365f10d8e66001d270b0059da77bef190ed712558c7186af00a1ccc4c
|
data/NEWS.md
CHANGED
@@ -21,7 +21,7 @@ module FactoryBot
|
|
21
21
|
|
22
22
|
delegate :before, :after, :callback, to: :@definition
|
23
23
|
|
24
|
-
attr_reader :child_factories
|
24
|
+
attr_reader :child_factories
|
25
25
|
|
26
26
|
def initialize(definition, ignore = false)
|
27
27
|
@definition = definition
|
@@ -121,7 +121,7 @@ module FactoryBot
|
|
121
121
|
# Except that no globally available sequence will be defined.
|
122
122
|
def sequence(name, *args, &block)
|
123
123
|
options = args.extract_options!
|
124
|
-
options[:uri_paths] = definition.uri_manager.to_a
|
124
|
+
options[:uri_paths] = @definition.uri_manager.to_a
|
125
125
|
args << options
|
126
126
|
|
127
127
|
new_sequence = Sequence.new(name, *args, &block)
|
@@ -177,7 +177,7 @@ module FactoryBot
|
|
177
177
|
end
|
178
178
|
|
179
179
|
def trait(name, &block)
|
180
|
-
@definition.define_trait(Trait.new(name, uri_paths: definition.uri_manager.to_a, &block))
|
180
|
+
@definition.define_trait(Trait.new(name, uri_paths: @definition.uri_manager.to_a, &block))
|
181
181
|
end
|
182
182
|
|
183
183
|
# Creates traits for enumerable values.
|
data/lib/factory_bot/version.rb
CHANGED