Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v2.0.0.a8
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.521 kB
require 'action_dispatch'
require 'webrat'
module RequestExampleGroupBehaviour
include ActionDispatch::Assertions
include ActionDispatch::Integration::Runner
include Webrat::Matchers
include Webrat::Methods
Rails.application.routes.install_helpers(self)
def app
Rails.application
end
Webrat.configure do |config|
config.mode = :rack
end
def last_response
response
end
Rspec.configure do |c|
c.include self, :example_group => { :file_path => /\bspec\/requests\// }
end
end
Jump to Line
Something went wrong with that request. Please try again.