Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

rspec-rails-uncommitted

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 rspec-rails-uncommitted.gemspec
README.md

rspec-rails-uncommitted

rake tasks for rails-3 which selectively run specs based on your SCM status.

Install

gem install rspec-rails-uncommitted

Configure

Add rspec-rails-uncommitted to the :test and :development groups in the Gemfile:

group :test, :development do
  gem "rspec-rails-uncommitted", "~> 2.0"
end

It needs to be in the :development group to expose generators and rake tasks without having to type RAILS_ENV=test.

Behavior

rake spec:uncommitted

This task will execute specs associated with files you have changed and not yet committed.

rake spec:unpushed

This task will execute specs for files you have committed locally, but haven't pushed up to origin.

rake spec:unmerged

This task will execute specs for files you have not yet merged back into the master branch.

Contribute

See http://github.com/rspec/rspec-dev

Also see

Something went wrong with that request. Please try again.