Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 84d448c4ce
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.668 kb
require 'action_dispatch'
require 'webrat'
module RequestExampleGroupBehaviour
extend ActiveSupport::Concern
include ActionDispatch::Integration::Runner
include RSpec::Rails::TestUnitAssertionAdapter
include ActionDispatch::Assertions
include Webrat::Matchers
include Webrat::Methods
include RSpec::Matchers
included do
before do
@router = ::Rails.application.routes
end
end
def app
::Rails.application
end
def last_response
response
end
Webrat.configure do |config|
config.mode = :rack
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.