factory_girl 3.6.1 → 3.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/gemfiles/3.0.gemfile.lock +1 -1
- data/gemfiles/3.1.gemfile.lock +1 -1
- data/gemfiles/3.2.gemfile.lock +1 -1
- data/lib/factory_girl/step_definitions.rb +1 -1
- data/lib/factory_girl/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/gemfiles/3.0.gemfile.lock
CHANGED
data/gemfiles/3.1.gemfile.lock
CHANGED
data/gemfiles/3.2.gemfile.lock
CHANGED
@@ -43,7 +43,7 @@ module FactoryGirlStepHelpers
|
|
43
43
|
return unless association
|
44
44
|
|
45
45
|
if attributes_hash = nested_attribute_hash
|
46
|
-
factory.build_class.
|
46
|
+
factory.build_class.where(attributes_hash.attributes(FindAttributes)).first or
|
47
47
|
FactoryGirl.create(association.factory, attributes_hash.attributes)
|
48
48
|
end
|
49
49
|
end
|
data/lib/factory_girl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_girl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-10-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|