gabrielg-factory_girl 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/factory_girl/factory.rb +1 -1
  2. metadata +1 -1
@@ -252,7 +252,7 @@ class Factory
252
252
  instance = build_class.new
253
253
  attrs = build_attributes_hash(override, strategy)
254
254
  attrs.each do |attr, value|
255
- instance.send(:"#{attr}=", value)
255
+ instance.send(:"#{attr}=", value) if instance.respond_to?(:"#{attr}=")
256
256
  end
257
257
  @callbacks[:after_build].call(instance) unless @callbacks[:after_build].nil?
258
258
  instance
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gabrielg-factory_girl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Ferris