Thanks guys,
got autotest running now with the hack, working like a charm - now I
remember that sometimes I do actually enjoy coding! :)
Now to get it working properly with Cucumber and Factory Girl
("uninitialized constant Factory") ...
On Jan 21, 7:12 pm, "Arailsdemo A." <[email protected]> wrote:
> > But don't you always need to do that? Isn't that the task that clears
> > out the test DB? Or is that not an issue since you're (hopefully)
> > running your specs transactionally?
>
> As far as I can tell, the difference between 'rake spec' and 'rspec
> spec' is 'db:test:prepare'. When all tests pass with 'rake spec',
> they're also passing with 'rspec spec', only faster. If you check the
> test database after running 'rspec spec', it should be empty. So that's
> why I think 'rake spec' isn't necessary, unless the database schema has
> changed.
>
> I do have
>
> config.use_transactional_fixtures = true
>
> in my spec_helper file. If the setting is set to false, then the
> database could have residual data in it after running the tests.
>
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en.