Rspec-2 expectations (should and matchers)
Ruby
Pull request Compare This branch is 1 commit ahead, 2077 commits behind rspec:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
lib
spec
.document
.gitignore
Gemfile
History.md
License.txt
README.markdown
Rakefile
Upgrade.markdown
cucumber.yml
rspec-expectations.gemspec
specs.watchr

README.markdown

RSpec Expectations

rspec-expectations adds should and should_not to every object and includes RSpec::Matchers, a library of standard matchers.

Matchers

Matchers are objects used to compose expectations:

result.should eq("this value")

In that example, eq("this value") returns a Matcher object that compares the actual result to the expected "this value".

Contribute

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

Also see