This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Jonathan del Strother (author)
Sat Mar 15 11:32:55 -0700 2008
commit a1f0ebead45cb50d47434f449f94948c6866b5ba
tree 6b0dd6fb62f72309a819bbf622b2d4e228a31e53
parent c306874a65ba9e63afbc5abbc5013ba7e7024de0
tree 6b0dd6fb62f72309a819bbf622b2d4e228a31e53
parent c306874a65ba9e63afbc5abbc5013ba7e7024de0
rspec / rspec
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
.autotest | Thu Apr 03 15:02:31 -0700 2008 | |
| |
CHANGES | ||
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
TODO | ||
| |
UPGRADE | ||
| |
bin/ | ||
| |
examples/ | ||
| |
failing_examples/ | Thu Apr 03 15:02:31 -0700 2008 | |
| |
init.rb | Thu Apr 03 15:02:31 -0700 2008 | |
| |
lib/ | ||
| |
plugins/ | ||
| |
pre_commit/ | ||
| |
rake_tasks/ | ||
| |
spec/ | ||
| |
stories/ | ||
| |
story_server/ | Thu Apr 03 15:02:31 -0700 2008 |
rspec/README
== RSpec RSpec is a Behaviour Driven Development framework with tools to express User Stories with Executable Scenarios and Executable Examples at the code level. RSpec ships with several modules: Spec::Story provides a framework for expressing User Stories Spec::Example provides a framework for expressing code Examples Spec::Matchers provides Expression Matchers for use with Spec::Expectations and Spec::Mocks. Spec::Expectations supports setting expectations on your objects so you can do things like: result.should equal(expected_result) Spec::Mocks supports creating Mock Objects, Stubs, and adding Mock/Stub behaviour to your existing objects. == Installation The simplest approach is to install the gem: gem install -r rspec #mac users must sudo == Building the RSpec gem If you prefer to build the gem locally, check out source from svn://rubyforge.org/var/svn/rspec/trunk. Then do the following: rake gem gem install pkg/rspec-0.x.x.gem (you may have to sudo) == Running RSpec's specs In order to run RSpec's full suite of specs (rake pre_commit) you must install the following gems: * rake # Runs the build script * rcov # Verifies that the code is 100% covered by specs * webby # Generates the static HTML website * syntax # Required to highlight ruby code * diff-lcs # Required if you use the --diff switch * win32console # Required by the --colour switch if you're on Windows * meta_project # Required in order to make releases at RubyForge * heckle # Required if you use the --heckle switch * hpricot # Used for parsing HTML from the HTML output formatter in RSpec's own specs Once those are all installed, you should be able to run the suite with the following steps: * svn co svn://rubyforge.org/var/svn/rspec/trunk rspec * cd rspec * rake install_dependencies * cd example_rails_app * export RSPEC_RAILS_VERSION=1.2.3 * rake rspec:generate_mysql_config * mysql -u root < db/mysql_setup.sql * cd .. * rake pre_commit Note that RSpec itself - once built - doesn't have any dependencies outside the Ruby core and stdlib - with a few exceptions: * The spec command line uses diff-lcs when --diff is specified. * The spec command line uses heckle when --heckle is specified. * The Spec::Rake::SpecTask needs RCov if RCov is enabled in the task. See http://rspec.info for further documentation. == Contributing








