[rspec-users] Issues implementing Rspec with Rails3 from tutorial
lists at ruby-forum.com
Wed Mar 16 12:53:42 EDT 2011
Brian Ledsworth wrote in post #987662:
> 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.
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..
Posted via http://www.ruby-forum.com/.
More information about the rspec-users