[rspec-users] RSpec-rails 1.2.2: autospec passes but "rake spec" fails
lists at ruby-forum.com
Wed Mar 25 15:29:04 EDT 2009
Tadatoshi Takahashi wrote:
> I started to use RSpec and RSpec-rails 1.2.0 last week when I upgraded
> Ruby on Rails 2.3.2.
> At that time, "ruby script/generate rspec" hang but autospec and "rake
> were successful.
> Yesterday, I updated to RSpec and RSpec-rails 1.2.2.
> This time, "ruby script/generate rspec" was successful with helpful
> autospec is still successful.
> But "rake spec" failed and it even overwritten the development database.
> It appears that only the database tables with the fixtures that are
> used are overwritten.
> I could stop using fixtures all together.
> But I would rather like to know how to resolve this problem.
> Please let me know what I should do to resolve the problem.
> Thank you in advance.
It seems that autospec is run against test database and that "rake spec"
is run against development database.
How can I resolve this problem?
Posted via http://www.ruby-forum.com/.
More information about the rspec-users