Move rspec-rails integration code to webrat/integrations/rspec-rails
This commit is contained in:
parent
2fc9f3f7f9
commit
723f4356b9
|
@ -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
|
|
@ -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"
|
Loading…
Reference in New Issue