Skip to content

Commit

Permalink
Move rspec-rails integration code to webrat/integrations/rspec-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Aug 20, 2009
1 parent 2fc9f3f commit 723f435
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 10 additions & 0 deletions lib/webrat/integrations/rspec-rails.rb
@@ -0,0 +1,10 @@
# 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 or env.rb:
#
# require 'webrat/rspec-rails'
#
require "webrat/core/matchers"

Spec::Runner.configure do |config|
config.include(Webrat::Matchers, :type => [:controller, :helper, :view])
end
12 changes: 2 additions & 10 deletions lib/webrat/rspec-rails.rb
@@ -1,10 +1,2 @@
# 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 or env.rb:
#
# require 'webrat/rspec-rails'
#
require "webrat/core/matchers"

Spec::Runner.configure do |config|
config.include(Webrat::Matchers, :type => [:controller, :helper, :view])
end
warn("Requiring 'webrat/rspec-rails' is deprecated. Please require 'webrat/integrations/rspec-rails' instead")
require "webrat/integrations/rspec-rails"

0 comments on commit 723f435

Please sign in to comment.