[LRUG] Rake issue

Graham Ashton graham at effectif.com
Mon Oct 3 11:24:58 PDT 2011

On 3 Oct 2011, at 19:06, Adrian Stainforth wrote:

> When I run a trace I get the following:
> wrong number of arguments (1 for 0)
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/syntax/default.rb:6:in `define'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/deprecated.rb:5:in `method_missing'
> /Users/djforth/Websites/bdglobal/spec/factories/sites.rb:3:in `<top (required)>'

What do you have on line 3 of spec/factories/sites.rb?

I haven't used FactoryGirl 2.1 yet, but poking around in the gem (line 6 of syntax/default.rb - the easiest way to read the code is with `bundle open factory_girl`) has me wondering if the API has changed. The define method doesn't take any arguments, just a block. Last time I used it you said things like Factory.define(:foo).

A quick Google suggests my suspicion might be right.


Perhaps it'd be worth downgrading to 2.0.x for the moment and trying again?

More information about the Chat mailing list