[rspec-users] Problem running RSpec tests with Rails

Bruno Cardoso lists at ruby-forum.com
Tue Jul 27 07:01:59 EDT 2010

David Chelimsky wrote:
> On Jul 27, 2010, at 4:10 AM, Bruno Cardoso wrote:
>>> have pending migrations, but still have it reset the test database so 
>>> it's schema looks like the development database schema?
>> Exactly.
> OK. This is not Rails' intent (which is why 
> 'db:abort_if_pending_migrations' is a prereq of 'db:test:prepare'), but 
> you can use the same technique I described earlier on 'db:test:prepare' 
> instead of 'spec':
>   Rake::Task['db:test:prepare'].clear_prerequisites
> Now you should get what you're looking for.
> Cheers,
> David

Yeah, it worked exactly like you said. Now I can choose between the two 

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

More information about the rspec-users mailing list