Path: | README |
Last Update: | Sat Dec 08 02:33:02 +0000 2007 |
RSpec is a framework for developing ruby applications using Behaviour Driven Development.
RSpec adds expectation methods to every object, with specific types of expectations set on specific classes. For example …
@message = "some message" @message.should == "some message"
… will be available on every object, whereas …
proc { @number = @number + 1 }.should_change{ @number }.by(1)
… will only be available for proc objects.
See Spec::Expectations for details on the different expectations you can set.
rake gem gem install pkg/rspec-0.x.x.gem (you may have to sudo)
In order to run RSpec‘s full suite of specs (rake pre_commit) you must install the following gems:
Note that RSpec itself - once built - doesn‘t have any dependencies outside the Ruby core and stdlib - with a few exceptions:
See rspec.rubyforge.org for further documentation.