specjour

How do I prepare test database(s) for Rails rspec tests without running rake spec?

吃可爱长大的小学妹 提交于 2019-11-27 17:39:31
After significant troubleshooting, I figured out that I needed to run rake spec once (I can abort with control-c) before I can run rspec directly (e.g. on a subset of our specs). We are running Rails 3.0.7 and RSpec 2.5.0. Clearly, rake is running some important database setup tasks / code (we have custom code in the root level rails Rakefile and possibly other places). How can I run the rake test database setup tasks / code without running rake spec ? In addition to being able to run rspec on a subset of files, I am using specjour to spread our specs across multiple cores (haven't had success

How do I prepare test database(s) for Rails rspec tests without running rake spec?

帅比萌擦擦* 提交于 2019-11-26 19:07:05
问题 After significant troubleshooting, I figured out that I needed to run rake spec once (I can abort with control-c) before I can run rspec directly (e.g. on a subset of our specs). We are running Rails 3.0.7 and RSpec 2.5.0. Clearly, rake is running some important database setup tasks / code (we have custom code in the root level rails Rakefile and possibly other places). How can I run the rake test database setup tasks / code without running rake spec ? In addition to being able to run rspec