rake tasks for rails-3 which selectively run specs based on your SCM status.
gem install rspec-rails-uncommitted
Add rspec-rails-uncommitted to the :test and :development groups in the Gemfile:
group :test, :development do
gem "rspec-rails-uncommitted", "~> 2.0"
endIt needs to be in the :development group to expose generators and rake
tasks without having to type RAILS_ENV=test.
This task will execute specs associated with files you have changed and not yet committed.
This task will execute specs for files you have committed locally, but haven't pushed up to origin.
This task will execute specs for files you have not yet merged back into the master branch.