Skip to content

Commit

Permalink
Merge commit 'dchelimsky/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Nov 14, 2008
2 parents 0a2fc91 + 032a016 commit 0081ea2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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

0 comments on commit 0081ea2

Please sign in to comment.