Easy rspec matchers

http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html

RSpec view tests and url_for

Ran into a problem with RSpec when trying to create a spec for a view that used an ActionView url helper that required additional parameters to generate the url.

route.edit_page ‘:site/edit’, :conditions => { :method => :get }, :controller => ‘webpages’, :action => ‘edit_page’

The above route sets params[:site] which is later used for url generation (using, [...]