On Jul 23, 2012, at 7:05 AM, [email protected] wrote:
> 
> And the failure I get is:
> 
>   Failure/Error: let(:user) {  FactoryGirl.create(:user) }
>      NoMethodError:
>        undefined method `api_key=' for #<User:0x00000103ccf098>
> 
> In development mode, the api_key can be populated (by an observer)
> and generally works as expected.
> 
> Can anyone please give me a hint why this is an unknown attribute when
> trying to run rspec?

This is going to sound like a silly question, but are you running specs with 
the rspec command line tool? If you are, you may want to do:

rake db:test:prepare

as it looks like your test DB is missing the api_key column...

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to