public
Description: RSpec extension library for Ruby on Rails
Homepage:
Clone URL: git://github.com/dchelimsky/rspec-rails.git
name age message
file .document Sun Mar 22 15:32:58 -0700 2009 .rdoc [dchelimsky]
file .gitignore Fri Jan 16 22:37:34 -0800 2009 adding #description to have_text and include_te... [Ben Mabey]
file Contribute.rdoc Wed Sep 02 01:13:53 -0700 2009 add Contribution info [dchelimsky]
file History.rdoc Sat Oct 10 20:05:40 -0700 2009 update history [dchelimsky]
file License.txt Mon Feb 02 08:50:55 -0800 2009 update license [dchelimsky]
file Manifest.txt Mon Sep 14 02:54:35 -0700 2009 update manifest [dchelimsky]
file README.rdoc Sun Mar 22 15:32:58 -0700 2009 .rdoc [dchelimsky]
file Rakefile Wed Oct 21 05:48:15 -0700 2009 restore prepend ./lib to LOAD_PATH in Rakefile ... [dchelimsky]
file TODO.txt Mon Sep 14 02:38:54 -0700 2009 remove gen'd routing spec from controller gener... [dchelimsky]
file Upgrade.rdoc Wed Jul 29 22:20:47 -0700 2009 history/upgrade [dchelimsky]
directory generators/ Wed Oct 21 08:48:32 -0700 2009 Remove renegade apostrophe from possessive its ... [tomstuart]
file init.rb Thu Apr 03 15:03:45 -0700 2008 remove everything but rspec-rails from rspec-ra... [dchelimsky]
directory lib/ Wed Oct 21 07:23:01 -0700 2009 record render instead of rendering if the templ... [dchelimsky]
directory spec/ Wed Oct 21 07:23:01 -0700 2009 record render instead of rendering if the templ... [dchelimsky]
README.rdoc

Spec::Rails

DESCRIPTION:

Behaviour Driven Development for Ruby on Rails.

rspec-rails is an RSpec extension that allows you to drive the development of Ruby on Rails applications with RSpec.

FEATURES:

  • Use RSpec to independently specify Rails Models, Views, Controllers and Helpers
  • Integrated fixture loading
  • Special generators for Resources, Models, Views and Controllers that generate RSpec code examples.

VISION:

For people for whom TDD is a brand new concept, the testing support built into Ruby on Rails is a huge leap forward. The fact that it is built right in is fantastic, and Ruby on Rails apps are generally much easier to maintain than they might have been without such support.

For those of us coming from a history with TDD, and now BDD, the existing support presents some problems related to dependencies across examples. To that end, RSpec on Rails supports 4 types of examples. We’ve also built in first class mocking and stubbing support in order to break dependencies across these different concerns.

MORE INFORMATION:

See Spec::Rails::Example for information about the different kinds of example groups you can use to spec the different Rails components

See Spec::Rails::Matchers for information about Rails-specific expectations you can set on responses and models, etc.

INSTALL