-
RSpec documentation
The parts of RSpec are:
rspec-core: The spec runner, providing a rich command line program, flexible and customizable reporting, and an API to organize your code examples.
rspec-expectations: Provide...
-
About RSpec
History
RSpec began life in 2005 as an experiment by Steven Baker, with early
contributions from Dave Astels and Aslak Hellesøy. David Chelimsky
joined the team that summer, and accepted leadership of...
-
File: README
— Documentation by YARD 0.9.28
You can also use the names
shared_context and
shared_examples and
let declarations, helper methods,
etc, but no examples.
Metadata
rspec-core stores a metadata hash with every example and group, wh...
-
File: README
— Documentation by YARD 0.9.24
Gemfile:
# Run against the latest stable release
group :development, :test do
gem 'rspec-rails', '~> 4.0.0'
end
# Or, run against the master branch
# (requires master-branch versio...
-
RSpec: Behaviour Driven Development for Ruby
Let's get started!
rspec --init to
set up your project to use RSpec.
Start with a very simple example that expresses some basic desired
behaviour.
Run the example and watch it fail.
Implement that bas...