Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Utility to remove unneeded shoulds from your RSpec test descriptions - 'it "should do something"' becomes 'it "does something"'
Ruby
branch: master

Merge pull request #5 from mark-rushakoff/related-projects

Mention should_not in related projects in README
latest commit 961cd89800
@sachinr sachinr authored
Failed to load latest commit information.
bin
lib
spec
.gitignore Initial import
.rbenv-version
.rspec
.travis.yml
Gemfile Initial import
LICENSE Initial import
README.md
Rakefile
should_clean.gemspec

README.md

ShouldClean

Build Status

Clean "should" from test libraries. Example:

it "should do something"

is replaced with:

it "does something"

Installation

gem install should_clean

Usage

Search and replace in a directory:

should_clean -d DIRECTORY

Run in simulator mode (it just prints the changes to the screen)

should_clean -d DIRECTORY -s

Related Projects

  • should_not: a gem to enforce that specs in RSpec and MiniTest do not begin with "should."

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Make sure all tests pass (rspec spec/)
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request
Something went wrong with that request. Please try again.