thoughtbot/factory_girl — Issue #261: Attributes_for returns factory instead of list of attributes in Rails 3.2
Author: deepj
Created: 2011-12-26 00:01:05+00:00
State: open

Hello,
I'm trying to use FactoryGirl 2.3.2 with Rails 3.2.rc1 and I'm getting the following problem:

`FactoryGirl.attributes_for :bid` returns

```ruby
#
```

instead of

```ruby
{"user_id"=>"663", "task_id"=>"147", "price"=>"20"}
```

Bid factory is defined by this way

```ruby
FactoryGirl.define do
factory :bid do
association :user
association :task

price 20
end
end
```