[rspec-users] Issues implementing Rspec with Rails3 from tutorial

Mohnish J. lists at ruby-forum.com
Wed Mar 16 12:53:42 EDT 2011


Brian Ledsworth wrote in post #987662:
> Mohnish
>
> Hard to tell without looking at the state if your rails app or the
> specs.  But, it looks like it might be your Model.  Try loading the
> rails console in test ("rails console test"), and see if you can create
> and save the model.  Also, I assume "rake db:migrate" ran without issue
> as well?
>
> If that's all good, please post your spec.
>
> Brian

Hi Brian,

I made a fundamental mistake, I realized that I always made use of rake 
db:create, and rake db:migrate. This would set things for me with 
Development Environment. For the test enviroment, I had to use rake 
db:test:prepare or rake db:migrate with appropriate syntax to reflect 
the migrations in the Test Environment.

Thank you for your response and attempt to help..

Its appreciated..:)

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list