thoughtbot/factory_girl — Issue #285: :y cannot be overwritten unless specified in factory
Author: mifrai
Created: 2012-01-28 09:22:45+00:00
State: open

On Factory Girl 2.5.0

The `:y` attribute cannot be overwritten during build unless it is specified in the factory

Minimal test case

```ruby
class YPos
attr_accessor :y
end

factory :y_pos do
# uncomment the following and it will work
# y nil
end

> FactoryGirl.build(:y_pos, y: 2).y
=> nil
```