vitalish-factory_girl 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.7
1
+ 1.2.8
@@ -2,6 +2,7 @@ class Factory
2
2
  class Proxy #:nodoc:
3
3
  class AttributesFor < Proxy #:nodoc:
4
4
  def initialize(klass)
5
+ super
5
6
  @hash = {}
6
7
  end
7
8
 
@@ -2,6 +2,7 @@ class Factory
2
2
  class Proxy #:nodoc:
3
3
  class Build < Proxy #:nodoc:
4
4
  def initialize(klass)
5
+ super
5
6
  @instance = klass.new
6
7
  end
7
8
 
@@ -4,6 +4,7 @@ class Factory
4
4
  @@next_id = 1000
5
5
 
6
6
  def initialize(klass)
7
+ super
7
8
  @instance = klass.new
8
9
  @instance.id = next_id
9
10
  @instance.instance_eval do
@@ -5,6 +5,7 @@ class Factory
5
5
  attr_reader :callbacks
6
6
 
7
7
  def initialize(klass)
8
+ @params = {}
8
9
  end
9
10
 
10
11
  def get(attribute)
@@ -15,7 +16,6 @@ class Factory
15
16
  end
16
17
 
17
18
  def set_param(attribute, value)
18
- @params ||= {}
19
19
  @params[attribute] = value
20
20
  end
21
21
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitalish-factory_girl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 7
10
- version: 1.2.7
9
+ - 8
10
+ version: 1.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joe Ferris