factory_girl 2.0.5 → 2.1.0
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.
- data/.autotest +9 -0
- data/.gitignore +8 -0
- data/.rspec +2 -0
- data/.travis.yml +10 -0
- data/.yardopts +5 -0
- data/Appraisals +3 -0
- data/GETTING_STARTED.md +67 -8
- data/Gemfile +2 -11
- data/Gemfile.lock +51 -34
- data/README.md +3 -1
- data/cucumber.yml +1 -0
- data/features/find_definitions.feature +21 -8
- data/features/step_definitions/factory_girl_steps.rb +4 -4
- data/gemfiles/2.1.gemfile +8 -0
- data/gemfiles/2.1.gemfile.lock +73 -0
- data/gemfiles/2.3.gemfile +7 -0
- data/gemfiles/2.3.gemfile.lock +71 -0
- data/gemfiles/3.0.gemfile +7 -0
- data/gemfiles/3.0.gemfile.lock +81 -0
- data/gemfiles/3.1.gemfile +7 -0
- data/gemfiles/3.1.gemfile.lock +91 -0
- data/lib/factory_girl.rb +1 -0
- data/lib/factory_girl/attribute.rb +4 -0
- data/lib/factory_girl/attribute_list.rb +35 -13
- data/lib/factory_girl/factory.rb +36 -9
- data/lib/factory_girl/proxy/build.rb +21 -2
- data/lib/factory_girl/proxy/create.rb +6 -0
- data/lib/factory_girl/proxy/stub.rb +10 -2
- data/lib/factory_girl/rails2.rb +1 -0
- data/lib/factory_girl/reload.rb +8 -0
- data/lib/factory_girl/syntax/default.rb +16 -0
- data/lib/factory_girl/version.rb +1 -1
- data/spec/acceptance/build_spec.rb +31 -0
- data/spec/acceptance/create_spec.rb +27 -1
- data/spec/acceptance/modify_factories_spec.rb +184 -0
- data/spec/acceptance/stub_spec.rb +64 -0
- data/spec/factory_girl/attribute_list_spec.rb +54 -2
- data/spec/factory_girl/factory_spec.rb +6 -4
- data/spec/factory_girl/proxy/build_spec.rb +24 -0
- data/spec/factory_girl/proxy/stub_spec.rb +14 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/support/shared_examples/proxy.rb +29 -0
- metadata +109 -57
- data/features/support/test.db +0 -0
@@ -1,5 +1,14 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
+
describe FactoryGirl::AttributeList, "overridable" do
|
4
|
+
it { should_not be_overridable }
|
5
|
+
|
6
|
+
it "can set itself as overridable" do
|
7
|
+
subject.overridable
|
8
|
+
subject.should be_overridable
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
3
12
|
describe FactoryGirl::AttributeList, "#define_attribute" do
|
4
13
|
let(:static_attribute) { FactoryGirl::Attribute::Static.new(:full_name, "value") }
|
5
14
|
let(:dynamic_attribute) { FactoryGirl::Attribute::Dynamic.new(:email, lambda {|u| "#{u.full_name}@example.com" }) }
|
@@ -22,6 +31,18 @@ describe FactoryGirl::AttributeList, "#define_attribute" do
|
|
22
31
|
2.times { subject.define_attribute(static_attribute) }
|
23
32
|
}.to raise_error(FactoryGirl::AttributeDefinitionError, "Attribute already defined: full_name")
|
24
33
|
end
|
34
|
+
|
35
|
+
context "when set as overridable" do
|
36
|
+
let(:static_attribute_with_same_name) { FactoryGirl::Attribute::Static.new(:full_name, "overridden value") }
|
37
|
+
before { subject.overridable }
|
38
|
+
|
39
|
+
it "redefines the attribute if the name already exists" do
|
40
|
+
subject.define_attribute(static_attribute)
|
41
|
+
subject.define_attribute(static_attribute_with_same_name)
|
42
|
+
|
43
|
+
subject.to_a.should == [static_attribute_with_same_name]
|
44
|
+
end
|
45
|
+
end
|
25
46
|
end
|
26
47
|
|
27
48
|
describe FactoryGirl::AttributeList, "#attribute_defined?" do
|
@@ -109,11 +130,42 @@ describe FactoryGirl::AttributeList, "#apply_attributes" do
|
|
109
130
|
subject.to_a.should == [city_attribute, full_name_attribute, email_attribute, login_attribute]
|
110
131
|
end
|
111
132
|
|
112
|
-
it "
|
133
|
+
it "doesn't overwrite attributes that are already defined" do
|
113
134
|
subject.define_attribute(full_name_attribute)
|
114
135
|
attribute_with_same_name = FactoryGirl::Attribute::Static.new(:full_name, "Benjamin Franklin")
|
115
136
|
|
116
137
|
subject.apply_attributes([attribute_with_same_name])
|
117
|
-
subject.to_a.should == [
|
138
|
+
subject.to_a.should == [full_name_attribute]
|
139
|
+
end
|
140
|
+
|
141
|
+
context "when set as overridable" do
|
142
|
+
before { subject.overridable }
|
143
|
+
|
144
|
+
it "prepends applied attributes" do
|
145
|
+
subject.define_attribute(full_name_attribute)
|
146
|
+
subject.apply_attributes([city_attribute])
|
147
|
+
subject.to_a.should == [city_attribute, full_name_attribute]
|
148
|
+
end
|
149
|
+
|
150
|
+
it "moves non-static attributes to the end of the list" do
|
151
|
+
subject.define_attribute(full_name_attribute)
|
152
|
+
subject.apply_attributes([city_attribute, email_attribute])
|
153
|
+
subject.to_a.should == [city_attribute, full_name_attribute, email_attribute]
|
154
|
+
end
|
155
|
+
|
156
|
+
it "maintains order of non-static attributes" do
|
157
|
+
subject.define_attribute(full_name_attribute)
|
158
|
+
subject.define_attribute(login_attribute)
|
159
|
+
subject.apply_attributes([city_attribute, email_attribute])
|
160
|
+
subject.to_a.should == [city_attribute, full_name_attribute, email_attribute, login_attribute]
|
161
|
+
end
|
162
|
+
|
163
|
+
it "overwrites attributes that are already defined" do
|
164
|
+
subject.define_attribute(full_name_attribute)
|
165
|
+
attribute_with_same_name = FactoryGirl::Attribute::Static.new(:full_name, "Benjamin Franklin")
|
166
|
+
|
167
|
+
subject.apply_attributes([attribute_with_same_name])
|
168
|
+
subject.to_a.should == [attribute_with_same_name]
|
169
|
+
end
|
118
170
|
end
|
119
171
|
end
|
@@ -308,15 +308,17 @@ describe FactoryGirl::Factory, "human names" do
|
|
308
308
|
end
|
309
309
|
|
310
310
|
describe FactoryGirl::Factory, "running a factory" do
|
311
|
-
subject
|
312
|
-
let(:attribute)
|
313
|
-
let(:
|
311
|
+
subject { FactoryGirl::Factory.new(:user) }
|
312
|
+
let(:attribute) { stub("attribute", :name => :name, :ignored => false, :add_to => nil, :aliases_for? => true) }
|
313
|
+
let(:attribute_list) { [attribute] }
|
314
|
+
let(:proxy) { stub("proxy", :result => "result", :set => nil) }
|
314
315
|
|
315
316
|
before do
|
316
317
|
define_model("User", :name => :string)
|
317
318
|
FactoryGirl::Attribute::Static.stubs(:new => attribute)
|
318
319
|
FactoryGirl::Proxy::Build.stubs(:new => proxy)
|
319
|
-
|
320
|
+
attribute_list.stubs(:apply_attributes)
|
321
|
+
FactoryGirl::AttributeList.stubs(:new => attribute_list)
|
320
322
|
end
|
321
323
|
|
322
324
|
it "creates the right proxy using the build class when running" do
|
@@ -9,4 +9,28 @@ describe FactoryGirl::Proxy::Build do
|
|
9
9
|
it_should_behave_like "proxy with association support", FactoryGirl::Proxy::Create
|
10
10
|
it_should_behave_like "proxy with standard getters and setters", :attribute_name, "attribute value!"
|
11
11
|
it_should_behave_like "proxy with callbacks", :after_build
|
12
|
+
it_should_behave_like "proxy with :method => :build",
|
13
|
+
FactoryGirl::Proxy::Build
|
14
|
+
|
15
|
+
describe "specifying method" do
|
16
|
+
it "defaults to create" do
|
17
|
+
subject.send(:get_method, nil).should == FactoryGirl::Proxy::Create
|
18
|
+
end
|
19
|
+
|
20
|
+
it "can specify create explicitly" do
|
21
|
+
subject.send(:get_method, :create).should ==
|
22
|
+
FactoryGirl::Proxy::Create
|
23
|
+
end
|
24
|
+
|
25
|
+
it "can specify build explicitly" do
|
26
|
+
subject.send(:get_method, :build).should ==
|
27
|
+
FactoryGirl::Proxy::Build
|
28
|
+
end
|
29
|
+
|
30
|
+
it "complains if method is unrecognized" do
|
31
|
+
lambda { subject.send(:get_method, :froboznicate) }.
|
32
|
+
should raise_error("unrecognized method froboznicate")
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
12
36
|
end
|
@@ -9,11 +9,25 @@ describe FactoryGirl::Proxy::Stub do
|
|
9
9
|
it_should_behave_like "proxy with association support", FactoryGirl::Proxy::Stub
|
10
10
|
it_should_behave_like "proxy with standard getters and setters", :attribute_name, "attribute value!"
|
11
11
|
it_should_behave_like "proxy with callbacks", :after_stub
|
12
|
+
it_should_behave_like "proxy with :method => :build",
|
13
|
+
FactoryGirl::Proxy::Stub
|
12
14
|
|
13
15
|
context "asking for a result" do
|
16
|
+
before { Timecop.freeze(Time.now) }
|
17
|
+
after { Timecop.return }
|
18
|
+
|
14
19
|
it { subject.result(nil).should_not be_new_record }
|
15
20
|
it { subject.result(nil).should be_persisted }
|
16
21
|
|
22
|
+
it "assigns created_at" do
|
23
|
+
created_at = subject.result(nil).created_at
|
24
|
+
created_at.should == Time.now
|
25
|
+
|
26
|
+
Timecop.travel(150000)
|
27
|
+
|
28
|
+
subject.result(nil).created_at.should == created_at
|
29
|
+
end
|
30
|
+
|
17
31
|
[:save, :destroy, :connection, :reload, :update_attribute].each do |database_method|
|
18
32
|
it "raises when attempting to connect to the database by calling #{database_method}" do
|
19
33
|
expect do
|
data/spec/spec_helper.rb
CHANGED
@@ -49,6 +49,35 @@ shared_examples_for "proxy with association support" do |factory_girl_proxy_clas
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
shared_examples_for "proxy with :method => :build" do |factory_girl_proxy_class|
|
53
|
+
let(:factory_name) { :user }
|
54
|
+
let(:association_name) { :owner }
|
55
|
+
let(:factory) { stub("associate_factory") }
|
56
|
+
let(:overrides) { { :method => :build } }
|
57
|
+
|
58
|
+
before do
|
59
|
+
FactoryGirl.stubs(:factory_by_name => factory)
|
60
|
+
instance.stubs(association_name => factory_name)
|
61
|
+
factory.stubs(:run => factory_name)
|
62
|
+
subject.stubs(:set)
|
63
|
+
end
|
64
|
+
|
65
|
+
it "sets a value for the association" do
|
66
|
+
subject.associate(association_name, factory_name, overrides)
|
67
|
+
subject.result(nil).send(association_name).should == factory_name
|
68
|
+
end
|
69
|
+
|
70
|
+
it "sets the association attribute as the factory" do
|
71
|
+
subject.associate(association_name, factory_name, overrides)
|
72
|
+
subject.should have_received(:set).with(association_name, factory_name)
|
73
|
+
end
|
74
|
+
|
75
|
+
it "runs the factory with the correct proxy class" do
|
76
|
+
subject.associate(association_name, factory_name, overrides)
|
77
|
+
factory.should have_received(:run).with(factory_girl_proxy_class, {})
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
52
81
|
shared_examples_for "proxy with standard getters and setters" do |attribute, value|
|
53
82
|
before do
|
54
83
|
instance.stubs(:"#{attribute}=" => value, :"#{attribute}" => value)
|
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: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-09-02 00:00:00.000000000 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
-
requirement: &
|
16
|
+
name: rspec
|
17
|
+
requirement: &2156798340 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
22
|
+
version: '2.0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2156798340
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
28
|
-
requirement: &
|
27
|
+
name: cucumber
|
28
|
+
requirement: &2156797700 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.0.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2156797700
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
39
|
-
requirement: &
|
38
|
+
name: timecop
|
39
|
+
requirement: &2156797320 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,32 +44,32 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2156797320
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
50
|
-
requirement: &
|
49
|
+
name: rcov
|
50
|
+
requirement: &2156796800 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ! '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2156796800
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
|
-
name:
|
61
|
-
requirement: &
|
60
|
+
name: aruba
|
61
|
+
requirement: &2156796320 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ! '>='
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
66
|
+
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *2156796320
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: mocha
|
72
|
-
requirement: &
|
72
|
+
requirement: &2156795900 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
@@ -77,10 +77,32 @@ dependencies:
|
|
77
77
|
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *2156795900
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: bourne
|
83
|
-
requirement: &
|
83
|
+
requirement: &2156795340 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *2156795340
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: appraisal
|
94
|
+
requirement: &2156794720 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ~>
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 0.3.8
|
100
|
+
type: :development
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *2156794720
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: sqlite3-ruby
|
105
|
+
requirement: &2156794240 !ruby/object:Gem::Requirement
|
84
106
|
none: false
|
85
107
|
requirements:
|
86
108
|
- - ! '>='
|
@@ -88,10 +110,10 @@ dependencies:
|
|
88
110
|
version: '0'
|
89
111
|
type: :development
|
90
112
|
prerelease: false
|
91
|
-
version_requirements: *
|
113
|
+
version_requirements: *2156794240
|
92
114
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
94
|
-
requirement: &
|
115
|
+
name: yard
|
116
|
+
requirement: &2156793760 !ruby/object:Gem::Requirement
|
95
117
|
none: false
|
96
118
|
requirements:
|
97
119
|
- - ! '>='
|
@@ -99,10 +121,10 @@ dependencies:
|
|
99
121
|
version: '0'
|
100
122
|
type: :development
|
101
123
|
prerelease: false
|
102
|
-
version_requirements: *
|
124
|
+
version_requirements: *2156793760
|
103
125
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
105
|
-
requirement: &
|
126
|
+
name: bluecloth
|
127
|
+
requirement: &2156793260 !ruby/object:Gem::Requirement
|
106
128
|
none: false
|
107
129
|
requirements:
|
108
130
|
- - ! '>='
|
@@ -110,7 +132,7 @@ dependencies:
|
|
110
132
|
version: '0'
|
111
133
|
type: :development
|
112
134
|
prerelease: false
|
113
|
-
version_requirements: *
|
135
|
+
version_requirements: *2156793260
|
114
136
|
description: ! "factory_girl provides a framework and DSL for defining and\n using
|
115
137
|
factories - less error-prone, more explicit, and\n all-around
|
116
138
|
easier to work with than fixtures."
|
@@ -119,16 +141,22 @@ executables: []
|
|
119
141
|
extensions: []
|
120
142
|
extra_rdoc_files: []
|
121
143
|
files:
|
122
|
-
-
|
123
|
-
-
|
144
|
+
- .autotest
|
145
|
+
- .gitignore
|
146
|
+
- .rspec
|
147
|
+
- .travis.yml
|
148
|
+
- .yardopts
|
124
149
|
- CONTRIBUTION_GUIDELINES.md
|
150
|
+
- Changelog
|
151
|
+
- GETTING_STARTED.md
|
125
152
|
- Gemfile
|
126
153
|
- Gemfile.lock
|
127
|
-
- GETTING_STARTED.md
|
128
154
|
- LICENSE
|
129
|
-
- Rakefile
|
130
155
|
- README.md
|
156
|
+
- Rakefile
|
157
|
+
- lib/factory_girl.rb
|
131
158
|
- lib/factory_girl/aliases.rb
|
159
|
+
- lib/factory_girl/attribute.rb
|
132
160
|
- lib/factory_girl/attribute/association.rb
|
133
161
|
- lib/factory_girl/attribute/callback.rb
|
134
162
|
- lib/factory_girl/attribute/dynamic.rb
|
@@ -136,21 +164,22 @@ files:
|
|
136
164
|
- lib/factory_girl/attribute/sequence.rb
|
137
165
|
- lib/factory_girl/attribute/static.rb
|
138
166
|
- lib/factory_girl/attribute/trait.rb
|
139
|
-
- lib/factory_girl/attribute.rb
|
140
167
|
- lib/factory_girl/attribute_list.rb
|
141
168
|
- lib/factory_girl/definition_proxy.rb
|
142
169
|
- lib/factory_girl/deprecated.rb
|
143
170
|
- lib/factory_girl/factory.rb
|
144
171
|
- lib/factory_girl/find_definitions.rb
|
172
|
+
- lib/factory_girl/proxy.rb
|
145
173
|
- lib/factory_girl/proxy/attributes_for.rb
|
146
174
|
- lib/factory_girl/proxy/build.rb
|
147
175
|
- lib/factory_girl/proxy/create.rb
|
148
176
|
- lib/factory_girl/proxy/stub.rb
|
149
|
-
- lib/factory_girl/proxy.rb
|
150
177
|
- lib/factory_girl/rails2.rb
|
151
178
|
- lib/factory_girl/registry.rb
|
179
|
+
- lib/factory_girl/reload.rb
|
152
180
|
- lib/factory_girl/sequence.rb
|
153
181
|
- lib/factory_girl/step_definitions.rb
|
182
|
+
- lib/factory_girl/syntax.rb
|
154
183
|
- lib/factory_girl/syntax/blueprint.rb
|
155
184
|
- lib/factory_girl/syntax/default.rb
|
156
185
|
- lib/factory_girl/syntax/generate.rb
|
@@ -158,10 +187,24 @@ files:
|
|
158
187
|
- lib/factory_girl/syntax/methods.rb
|
159
188
|
- lib/factory_girl/syntax/sham.rb
|
160
189
|
- lib/factory_girl/syntax/vintage.rb
|
161
|
-
- lib/factory_girl/syntax.rb
|
162
190
|
- lib/factory_girl/trait.rb
|
163
191
|
- lib/factory_girl/version.rb
|
164
|
-
-
|
192
|
+
- Appraisals
|
193
|
+
- cucumber.yml
|
194
|
+
- features/factory_girl_steps.feature
|
195
|
+
- features/find_definitions.feature
|
196
|
+
- features/step_definitions/database_steps.rb
|
197
|
+
- features/step_definitions/factory_girl_steps.rb
|
198
|
+
- features/support/env.rb
|
199
|
+
- features/support/factories.rb
|
200
|
+
- gemfiles/2.1.gemfile
|
201
|
+
- gemfiles/2.1.gemfile.lock
|
202
|
+
- gemfiles/2.3.gemfile
|
203
|
+
- gemfiles/2.3.gemfile.lock
|
204
|
+
- gemfiles/3.0.gemfile
|
205
|
+
- gemfiles/3.0.gemfile.lock
|
206
|
+
- gemfiles/3.1.gemfile
|
207
|
+
- gemfiles/3.1.gemfile.lock
|
165
208
|
- spec/acceptance/attribute_aliases_spec.rb
|
166
209
|
- spec/acceptance/attributes_for_spec.rb
|
167
210
|
- spec/acceptance/attributes_ordered_spec.rb
|
@@ -174,9 +217,11 @@ files:
|
|
174
217
|
- spec/acceptance/default_strategy_spec.rb
|
175
218
|
- spec/acceptance/definition_spec.rb
|
176
219
|
- spec/acceptance/definition_without_block_spec.rb
|
220
|
+
- spec/acceptance/modify_factories_spec.rb
|
177
221
|
- spec/acceptance/overrides_spec.rb
|
178
222
|
- spec/acceptance/parent_spec.rb
|
179
223
|
- spec/acceptance/sequence_spec.rb
|
224
|
+
- spec/acceptance/stub_spec.rb
|
180
225
|
- spec/acceptance/syntax/blueprint_spec.rb
|
181
226
|
- spec/acceptance/syntax/generate_spec.rb
|
182
227
|
- spec/acceptance/syntax/make_spec.rb
|
@@ -208,13 +253,6 @@ files:
|
|
208
253
|
- spec/spec_helper.rb
|
209
254
|
- spec/support/macros/define_constant.rb
|
210
255
|
- spec/support/shared_examples/proxy.rb
|
211
|
-
- features/factory_girl_steps.feature
|
212
|
-
- features/find_definitions.feature
|
213
|
-
- features/step_definitions/database_steps.rb
|
214
|
-
- features/step_definitions/factory_girl_steps.rb
|
215
|
-
- features/support/env.rb
|
216
|
-
- features/support/factories.rb
|
217
|
-
- features/support/test.db
|
218
256
|
has_rdoc: true
|
219
257
|
homepage: https://github.com/thoughtbot/factory_girl
|
220
258
|
licenses: []
|
@@ -242,6 +280,22 @@ specification_version: 3
|
|
242
280
|
summary: factory_girl provides a framework and DSL for defining and using model instance
|
243
281
|
factories.
|
244
282
|
test_files:
|
283
|
+
- Appraisals
|
284
|
+
- cucumber.yml
|
285
|
+
- features/factory_girl_steps.feature
|
286
|
+
- features/find_definitions.feature
|
287
|
+
- features/step_definitions/database_steps.rb
|
288
|
+
- features/step_definitions/factory_girl_steps.rb
|
289
|
+
- features/support/env.rb
|
290
|
+
- features/support/factories.rb
|
291
|
+
- gemfiles/2.1.gemfile
|
292
|
+
- gemfiles/2.1.gemfile.lock
|
293
|
+
- gemfiles/2.3.gemfile
|
294
|
+
- gemfiles/2.3.gemfile.lock
|
295
|
+
- gemfiles/3.0.gemfile
|
296
|
+
- gemfiles/3.0.gemfile.lock
|
297
|
+
- gemfiles/3.1.gemfile
|
298
|
+
- gemfiles/3.1.gemfile.lock
|
245
299
|
- spec/acceptance/attribute_aliases_spec.rb
|
246
300
|
- spec/acceptance/attributes_for_spec.rb
|
247
301
|
- spec/acceptance/attributes_ordered_spec.rb
|
@@ -254,9 +308,11 @@ test_files:
|
|
254
308
|
- spec/acceptance/default_strategy_spec.rb
|
255
309
|
- spec/acceptance/definition_spec.rb
|
256
310
|
- spec/acceptance/definition_without_block_spec.rb
|
311
|
+
- spec/acceptance/modify_factories_spec.rb
|
257
312
|
- spec/acceptance/overrides_spec.rb
|
258
313
|
- spec/acceptance/parent_spec.rb
|
259
314
|
- spec/acceptance/sequence_spec.rb
|
315
|
+
- spec/acceptance/stub_spec.rb
|
260
316
|
- spec/acceptance/syntax/blueprint_spec.rb
|
261
317
|
- spec/acceptance/syntax/generate_spec.rb
|
262
318
|
- spec/acceptance/syntax/make_spec.rb
|
@@ -285,10 +341,6 @@ test_files:
|
|
285
341
|
- spec/factory_girl/registry_spec.rb
|
286
342
|
- spec/factory_girl/sequence_spec.rb
|
287
343
|
- spec/factory_girl_spec.rb
|
288
|
-
-
|
289
|
-
-
|
290
|
-
-
|
291
|
-
- features/step_definitions/factory_girl_steps.rb
|
292
|
-
- features/support/env.rb
|
293
|
-
- features/support/factories.rb
|
294
|
-
- features/support/test.db
|
344
|
+
- spec/spec_helper.rb
|
345
|
+
- spec/support/macros/define_constant.rb
|
346
|
+
- spec/support/shared_examples/proxy.rb
|