I'm guessing Heroku doesn't intend for you to run your specs on their
dynos. When you install your app, my impression is that they
install/modify several config files in your app to make it play nice
with their environment, all of which are configured for the production
environment.

What's wrong with just running the specs locally?

On Fri, Mar 19, 2010 at 03:10, Ben Lovell <[email protected]> wrote:
> Have you got your test environment configured in your database.yml?
>
> Sent from my iPhone
>
> On 19 Mar 2010, at 03:05, Chris Baclig <[email protected]> wrote:
>
>> I can't seem to figure out how to run my specs on Heroku using `heroku
>> rake spec` from my command line.  I'm getting this error:
>>
>> undefined method `[]' for nil:NilClass
>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:
>> 360
>>
>> Where the error is coming from these lines:
>>
>> abcs = ActiveRecord::Base.configurations
>> case abcs["test"]["adapter"]
>>
>> Have I forgotten to setup something on Heroku?
>>
>> Thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Heroku" 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/heroku?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" 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/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" 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/heroku?hl=en.

Reply via email to