factory_girl 2.4.2 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/Appraisals CHANGED
@@ -16,5 +16,5 @@ appraise "3.1" do
16
16
  end
17
17
 
18
18
  appraise "3.2" do
19
- gem "activerecord", "~> 3.2.0.rc2"
19
+ gem "activerecord", "~> 3.2"
20
20
  end
data/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ 2.5.0 (January 20, 2012)
2
+ Revert 'Deprecate build_stubbed and attributes_for'
3
+ Implement initialize_with to allow overriding object instantiation
4
+ Ensure FG runs against Rails 3.2.0
5
+
1
6
  2.4.2 (January 18, 2012)
2
7
  Fix inline traits' interaction with defaults on the factory
3
8
 
@@ -590,6 +590,42 @@ To set the attributes for each of the factories, you can pass in a hash as you n
590
590
  twenty_year_olds = FactoryGirl.build_list(:user, 25, :date_of_birth => 20.years.ago)
591
591
  ```
592
592
 
593
+ Custom Construction
594
+ -------------------
595
+
596
+ Instantiating objects can be overridden in the case where you'd rather not
597
+ call `new` on your build class or you have some other factory method that
598
+ you'd prefer to use. Using custom construction also allows for your objects to
599
+ be instantiated with any number of arguments.
600
+
601
+ ```ruby
602
+ # user.rb
603
+ class User
604
+ attr_accessor :name, :email
605
+
606
+ def initialize(name)
607
+ @name = name
608
+ end
609
+ end
610
+
611
+ # factories.rb
612
+ sequence(:name) {|n| "person#{n}@example.com" }
613
+
614
+ factory :user do
615
+ ignore do
616
+ name { Faker::Name.name }
617
+ end
618
+
619
+ email
620
+ initialize_with { User.new(name) }
621
+ end
622
+
623
+ FactoryGirl.build(:user).name # Bob Hope
624
+ ```
625
+
626
+ Notice that I ignored the `name` attribute. If you don't want attributes
627
+ reassigned after your object has been instantiated, you'll want to `ignore` them.
628
+
593
629
  Cucumber Integration
594
630
  --------------------
595
631
 
@@ -620,4 +656,4 @@ User.blueprint do
620
656
  end
621
657
 
622
658
  User.make(:name => 'Johnny')
623
- ```
659
+ ```
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factory_girl (2.4.2)
4
+ factory_girl (2.5.0)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/joshuaclayton/dev/gems/factory_girl
3
3
  specs:
4
- factory_girl (2.4.2)
4
+ factory_girl (2.5.0)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/joshuaclayton/dev/gems/factory_girl
3
3
  specs:
4
- factory_girl (2.4.2)
4
+ factory_girl (2.5.0)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/joshuaclayton/dev/gems/factory_girl
3
3
  specs:
4
- factory_girl (2.4.2)
4
+ factory_girl (2.5.0)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/joshuaclayton/dev/gems/factory_girl
3
3
  specs:
4
- factory_girl (2.4.2)
4
+ factory_girl (2.5.0)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 3.2.0.rc2"
5
+ gem "activerecord", "~> 3.2"
6
6
 
7
7
  gemspec :path=>"../"
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: /Users/joshuaclayton/dev/gems/factory_girl
3
3
  specs:
4
- factory_girl (2.4.2)
4
+ factory_girl (2.5.0)
5
5
  activesupport
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- activemodel (3.2.0.rc2)
11
- activesupport (= 3.2.0.rc2)
10
+ activemodel (3.2.0)
11
+ activesupport (= 3.2.0)
12
12
  builder (~> 3.0.0)
13
- activerecord (3.2.0.rc2)
14
- activemodel (= 3.2.0.rc2)
15
- activesupport (= 3.2.0.rc2)
16
- arel (~> 3.0.0.rc1)
13
+ activerecord (3.2.0)
14
+ activemodel (= 3.2.0)
15
+ activesupport (= 3.2.0)
16
+ arel (~> 3.0.0)
17
17
  tzinfo (~> 0.3.29)
18
- activesupport (3.2.0.rc2)
18
+ activesupport (3.2.0)
19
19
  i18n (~> 0.6)
20
20
  multi_json (~> 1.0)
21
21
  appraisal (0.3.8)
@@ -34,7 +34,7 @@ GEM
34
34
  bourne (1.0)
35
35
  mocha (= 0.9.8)
36
36
  builder (3.0.0)
37
- childprocess (0.2.9)
37
+ childprocess (0.3.0)
38
38
  ffi (~> 1.0.6)
39
39
  cucumber (1.0.6)
40
40
  builder (>= 2.1.2)
@@ -47,7 +47,7 @@ GEM
47
47
  gherkin (2.4.21)
48
48
  json (>= 1.4.6)
49
49
  i18n (0.6.0)
50
- json (1.6.4)
50
+ json (1.6.5)
51
51
  mocha (0.9.8)
52
52
  rake
53
53
  multi_json (1.0.4)
@@ -75,7 +75,7 @@ PLATFORMS
75
75
  ruby
76
76
 
77
77
  DEPENDENCIES
78
- activerecord (~> 3.2.0.rc2)
78
+ activerecord (~> 3.2)
79
79
  appraisal (~> 0.3.8)
80
80
  aruba
81
81
  bluecloth
@@ -1,7 +1,7 @@
1
1
  module FactoryGirl
2
2
  class AttributeAssigner
3
- def initialize(build_class, evaluator)
4
- @build_class = build_class
3
+ def initialize(evaluator, &instance_builder)
4
+ @instance_builder = instance_builder
5
5
  @evaluator = evaluator
6
6
  @attribute_list = evaluator.class.attribute_list
7
7
  @attribute_names_assigned = []
@@ -29,7 +29,7 @@ module FactoryGirl
29
29
  private
30
30
 
31
31
  def build_class_instance
32
- @build_class_instance ||= @build_class.new
32
+ @build_class_instance ||= @evaluator.instance_exec(&@instance_builder)
33
33
  end
34
34
 
35
35
  def get(attribute_name)
@@ -1,6 +1,6 @@
1
1
  module FactoryGirl
2
2
  class Definition
3
- attr_reader :callbacks, :defined_traits, :declarations
3
+ attr_reader :callbacks, :defined_traits, :declarations, :constructor
4
4
 
5
5
  def initialize(name = nil, base_traits = [])
6
6
  @declarations = DeclarationList.new(name)
@@ -9,6 +9,7 @@ module FactoryGirl
9
9
  @to_create = lambda {|instance| instance.save! }
10
10
  @base_traits = base_traits
11
11
  @additional_traits = []
12
+ @constructor = nil
12
13
  end
13
14
 
14
15
  delegate :declare_attribute, :to => :declarations
@@ -50,6 +51,10 @@ module FactoryGirl
50
51
  @defined_traits << trait
51
52
  end
52
53
 
54
+ def define_constructor(&block)
55
+ @constructor = block
56
+ end
57
+
53
58
  private
54
59
 
55
60
  def base_traits
@@ -161,5 +161,9 @@ module FactoryGirl
161
161
  def trait(name, &block)
162
162
  @definition.define_trait(Trait.new(name, &block))
163
163
  end
164
+
165
+ def initialize_with(&block)
166
+ @definition.define_constructor(&block)
167
+ end
164
168
  end
165
169
  end
@@ -43,7 +43,7 @@ module FactoryGirl
43
43
  proxy = proxy_class.new
44
44
 
45
45
  evaluator = evaluator_class.new(proxy, overrides.symbolize_keys)
46
- attribute_assigner = AttributeAssigner.new(build_class, evaluator)
46
+ attribute_assigner = AttributeAssigner.new(evaluator, &instance_builder)
47
47
 
48
48
  proxy.result(attribute_assigner, to_create).tap(&block)
49
49
  end
@@ -123,6 +123,10 @@ module FactoryGirl
123
123
  processing_order.map {|factory| factory.callbacks }.flatten
124
124
  end
125
125
 
126
+ def constructor
127
+ @constructor ||= @definition.constructor || parent.constructor
128
+ end
129
+
126
130
  private
127
131
 
128
132
  def assert_valid_options(options)
@@ -143,6 +147,11 @@ module FactoryGirl
143
147
  end
144
148
  end
145
149
 
150
+ def instance_builder
151
+ build_class = self.build_class
152
+ constructor || lambda { build_class.new }
153
+ end
154
+
146
155
  def initialize_copy(source)
147
156
  super
148
157
  @definition = @definition.clone
@@ -6,7 +6,7 @@ module FactoryGirl
6
6
  @definition = Definition.new
7
7
  end
8
8
 
9
- delegate :defined_traits, :callbacks, :attributes, :to => :definition
9
+ delegate :defined_traits, :callbacks, :attributes, :constructor, :to => :definition
10
10
 
11
11
  def compile; end
12
12
  def class_name; end
@@ -5,10 +5,6 @@ module FactoryGirl
5
5
  # can be individually overridden by passing in a Hash of attribute => value
6
6
  # pairs.
7
7
  #
8
- # DEPRECATED
9
- #
10
- # Use build or create instead, calling attributes on the result
11
- #
12
8
  # Arguments:
13
9
  # * name: +Symbol+ or +String+
14
10
  # The name of the factory that should be used.
@@ -22,7 +18,6 @@ module FactoryGirl
22
18
  # A set of attributes that can be used to build an instance of the class
23
19
  # this factory generates.
24
20
  def attributes_for(name, *traits_and_overrides, &block)
25
- $stderr.puts "DEPRECATION WARNING: FactoryGirl.attributes_for is deprecated; use FactoryGirl.build or FactoryGirl.create and call #attributes on the result instead."
26
21
  run_factory_girl_proxy(name, traits_and_overrides, Proxy::AttributesFor, &block)
27
22
  end
28
23
 
@@ -72,10 +67,6 @@ module FactoryGirl
72
67
  # stubbed out. Attributes can be individually overridden by passing in a Hash
73
68
  # of attribute => value pairs.
74
69
  #
75
- # DEPRECATED
76
- #
77
- # Use build instead
78
- #
79
70
  # Arguments:
80
71
  # * name: +Symbol+ or +String+
81
72
  # The name of the factory that should be used.
@@ -88,7 +79,6 @@ module FactoryGirl
88
79
  # Returns: +Object+
89
80
  # An object with generated attributes stubbed out.
90
81
  def build_stubbed(name, *traits_and_overrides, &block)
91
- $stderr.puts "DEPRECATION WARNING: FactoryGirl.build_stubbed is deprecated; use FactoryGirl.build instead."
92
82
  run_factory_girl_proxy(name, traits_and_overrides, Proxy::Stub, &block)
93
83
  end
94
84
 
@@ -110,10 +110,6 @@ module FactoryGirl
110
110
  end
111
111
 
112
112
  # Alias for FactoryGirl.attributes_for
113
- #
114
- # DEPRECATED
115
- #
116
- # Use build or create instead, calling attributes on the result
117
113
  def self.attributes_for(name, overrides = {})
118
114
  FactoryGirl.attributes_for(name, overrides)
119
115
  end
@@ -129,10 +125,6 @@ module FactoryGirl
129
125
  end
130
126
 
131
127
  # Alias for FactoryGirl.build_stubbed.
132
- #
133
- # DEPRECATED
134
- #
135
- # Use build instead
136
128
  def self.stub(name, overrides = {})
137
129
  FactoryGirl.build_stubbed(name, overrides)
138
130
  end
@@ -1,4 +1,4 @@
1
1
  module FactoryGirl
2
- VERSION = "2.4.2"
2
+ VERSION = "2.5.0"
3
3
  end
4
4
 
@@ -0,0 +1,147 @@
1
+ require "spec_helper"
2
+
3
+ describe "initialize_with with non-FG attributes" do
4
+ include FactoryGirl::Syntax::Methods
5
+
6
+ before do
7
+ define_model("User", :name => :string, :age => :integer) do
8
+ def self.construct(name, age)
9
+ new(:name => name, :age => age)
10
+ end
11
+ end
12
+
13
+ FactoryGirl.define do
14
+ factory :user do
15
+ initialize_with { User.construct("John Doe", 21) }
16
+ end
17
+ end
18
+ end
19
+
20
+ subject { build(:user) }
21
+ its(:name) { should == "John Doe" }
22
+ its(:age) { should == 21 }
23
+ end
24
+
25
+ describe "initialize_with with FG attributes that are ignored" do
26
+ include FactoryGirl::Syntax::Methods
27
+
28
+ before do
29
+ define_model("User", :name => :string) do
30
+ def self.construct(name)
31
+ new(:name => "#{name} from .construct")
32
+ end
33
+ end
34
+
35
+ FactoryGirl.define do
36
+ factory :user do
37
+ ignore do
38
+ name { "Handsome Chap" }
39
+ end
40
+
41
+ initialize_with { User.construct(name) }
42
+ end
43
+ end
44
+ end
45
+
46
+ subject { build(:user) }
47
+ its(:name) { should == "Handsome Chap from .construct" }
48
+ end
49
+
50
+ describe "initialize_with with FG attributes that are not ignored" do
51
+ include FactoryGirl::Syntax::Methods
52
+
53
+ before do
54
+ define_model("User", :name => :string) do
55
+ def self.construct(name)
56
+ new(:name => "#{name} from .construct")
57
+ end
58
+ end
59
+
60
+ FactoryGirl.define do
61
+ factory :user do
62
+ name { "Handsome Chap" }
63
+
64
+ initialize_with { User.construct(name) }
65
+ end
66
+ end
67
+ end
68
+
69
+ it "assigns each attribute even if the attribute has been used in the constructor" do
70
+ build(:user).name.should == "Handsome Chap"
71
+ end
72
+ end
73
+
74
+ describe "initialize_with non-ORM-backed objects" do
75
+ include FactoryGirl::Syntax::Methods
76
+
77
+ before do
78
+ define_class("ReportGenerator") do
79
+ attr_reader :name, :data
80
+
81
+ def initialize(name, data)
82
+ @name = name
83
+ @data = data
84
+ end
85
+ end
86
+
87
+ FactoryGirl.define do
88
+ sequence(:random_data) { 5.times.map { Kernel.rand(200) } }
89
+
90
+ factory :report_generator do
91
+ ignore do
92
+ name "My Awesome Report"
93
+ end
94
+
95
+ initialize_with { ReportGenerator.new(name, FactoryGirl.generate(:random_data)) }
96
+ end
97
+ end
98
+ end
99
+
100
+ it "allows for overrides" do
101
+ build(:report_generator, :name => "Overridden").name.should == "Overridden"
102
+ end
103
+
104
+ it "generates random data" do
105
+ build(:report_generator).data.length.should == 5
106
+ end
107
+ end
108
+
109
+ describe "initialize_with parent and child factories" do
110
+ before do
111
+ define_class("Awesome") do
112
+ attr_reader :name
113
+
114
+ def initialize(name)
115
+ @name = name
116
+ end
117
+ end
118
+
119
+ FactoryGirl.define do
120
+ factory :awesome do
121
+ ignore do
122
+ name "Great"
123
+ end
124
+
125
+ initialize_with { Awesome.new(name) }
126
+
127
+ factory :sub_awesome do
128
+ ignore do
129
+ name "Sub"
130
+ end
131
+ end
132
+
133
+ factory :super_awesome do
134
+ initialize_with { Awesome.new("Super") }
135
+ end
136
+ end
137
+ end
138
+ end
139
+
140
+ it "uses the parent's constructor when the child factory doesn't assign it" do
141
+ FactoryGirl.build(:sub_awesome).name.should == "Sub"
142
+ end
143
+
144
+ it "allows child factories to override initialize_with" do
145
+ FactoryGirl.build(:super_awesome).name.should == "Super"
146
+ end
147
+ end
@@ -184,3 +184,14 @@ describe FactoryGirl::DefinitionProxy, "#trait" do
184
184
  subject.should have_trait(:male).with_block(male_trait)
185
185
  end
186
186
  end
187
+
188
+ describe FactoryGirl::DefinitionProxy, "#initialize_with" do
189
+ subject { FactoryGirl::Definition.new }
190
+ let(:proxy) { FactoryGirl::DefinitionProxy.new(subject) }
191
+
192
+ it "defines the constructor on the definition" do
193
+ constructor = Proc.new { Array.new }
194
+ proxy.initialize_with(&constructor)
195
+ subject.constructor.should == constructor
196
+ end
197
+ end
@@ -4,6 +4,7 @@ describe FactoryGirl::NullFactory do
4
4
  it { should delegate(:defined_traits).to(:definition) }
5
5
  it { should delegate(:callbacks).to(:definition) }
6
6
  it { should delegate(:attributes).to(:definition) }
7
+ it { should delegate(:constructor).to(:definition) }
7
8
 
8
9
  its(:compile) { should be_nil }
9
10
  its(:class_name) { should be_nil }
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.4.2
4
+ version: 2.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-18 00:00:00.000000000Z
12
+ date: 2012-01-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &70205633314300 !ruby/object:Gem::Requirement
16
+ requirement: &70146233062280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70205633314300
24
+ version_requirements: *70146233062280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70205633310180 !ruby/object:Gem::Requirement
27
+ requirement: &70146233061680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70205633310180
35
+ version_requirements: *70146233061680
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cucumber
38
- requirement: &70205633309440 !ruby/object:Gem::Requirement
38
+ requirement: &70146233061160 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70205633309440
46
+ version_requirements: *70146233061160
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: timecop
49
- requirement: &70205633308320 !ruby/object:Gem::Requirement
49
+ requirement: &70146233060780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70205633308320
57
+ version_requirements: *70146233060780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rcov
60
- requirement: &70205633307580 !ruby/object:Gem::Requirement
60
+ requirement: &70146233060320 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70205633307580
68
+ version_requirements: *70146233060320
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: aruba
71
- requirement: &70205633306600 !ruby/object:Gem::Requirement
71
+ requirement: &70146233059900 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70205633306600
79
+ version_requirements: *70146233059900
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: mocha
82
- requirement: &70205633305800 !ruby/object:Gem::Requirement
82
+ requirement: &70146233059460 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70205633305800
90
+ version_requirements: *70146233059460
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: bourne
93
- requirement: &70205633305240 !ruby/object:Gem::Requirement
93
+ requirement: &70146233059040 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70205633305240
101
+ version_requirements: *70146233059040
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: appraisal
104
- requirement: &70205633304740 !ruby/object:Gem::Requirement
104
+ requirement: &70146233058540 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.3.8
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70205633304740
112
+ version_requirements: *70146233058540
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: sqlite3-ruby
115
- requirement: &70205633304300 !ruby/object:Gem::Requirement
115
+ requirement: &70146233058120 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70205633304300
123
+ version_requirements: *70146233058120
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: yard
126
- requirement: &70205633303840 !ruby/object:Gem::Requirement
126
+ requirement: &70146233057620 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70205633303840
134
+ version_requirements: *70146233057620
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: bluecloth
137
- requirement: &70205633303340 !ruby/object:Gem::Requirement
137
+ requirement: &70146233057180 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,7 +142,7 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70205633303340
145
+ version_requirements: *70146233057180
146
146
  description: ! "factory_girl provides a framework and DSL for defining and\n using
147
147
  factories - less error-prone, more explicit, and\n all-around
148
148
  easier to work with than fixtures."
@@ -243,6 +243,7 @@ files:
243
243
  - spec/acceptance/define_child_before_parent_spec.rb
244
244
  - spec/acceptance/definition_spec.rb
245
245
  - spec/acceptance/definition_without_block_spec.rb
246
+ - spec/acceptance/initialize_with_spec.rb
246
247
  - spec/acceptance/modify_factories_spec.rb
247
248
  - spec/acceptance/modify_inherited_spec.rb
248
249
  - spec/acceptance/overrides_spec.rb
@@ -349,6 +350,7 @@ test_files:
349
350
  - spec/acceptance/define_child_before_parent_spec.rb
350
351
  - spec/acceptance/definition_spec.rb
351
352
  - spec/acceptance/definition_without_block_spec.rb
353
+ - spec/acceptance/initialize_with_spec.rb
352
354
  - spec/acceptance/modify_factories_spec.rb
353
355
  - spec/acceptance/modify_inherited_spec.rb
354
356
  - spec/acceptance/overrides_spec.rb