2008-11-12 18:38:12 +00:00
|
|
|
# Supports using the matchers in controller, helper, and view specs if you're
|
2008-12-03 02:55:09 +00:00
|
|
|
# using rspec-rails. Just add a require statement to spec/spec_helper.rb or env.rb:
|
2008-11-12 18:38:12 +00:00
|
|
|
#
|
|
|
|
# require 'webrat/rspec-rails'
|
|
|
|
#
|
|
|
|
require "webrat/core/matchers"
|
|
|
|
|
|
|
|
Spec::Runner.configure do |config|
|
|
|
|
# rspec should support :type => [:controller, :helper, :view] - but until it does ...
|
|
|
|
config.include(Webrat::Matchers, :type => :controller)
|
|
|
|
config.include(Webrat::Matchers, :type => :helper)
|
|
|
|
config.include(Webrat::Matchers, :type => :view)
|
|
|
|
end
|