diff --git a/lib/webrat/integrations/rspec-rails.rb b/lib/webrat/integrations/rspec-rails.rb new file mode 100644 index 0000000..d274987 --- /dev/null +++ b/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 diff --git a/lib/webrat/rspec-rails.rb b/lib/webrat/rspec-rails.rb index d274987..533eb02 100644 --- a/lib/webrat/rspec-rails.rb +++ b/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" \ No newline at end of file