diff --git a/lib/webrat/rspec-rails.rb b/lib/webrat/rspec-rails.rb new file mode 100644 index 0000000..ad81883 --- /dev/null +++ b/lib/webrat/rspec-rails.rb @@ -0,0 +1,13 @@ +# Supports using the matchers in controller, helper, and view specs if you're +# using rspec-rails. Just add a require statement to spec/spec_helper.rb: +# +# 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 \ No newline at end of file