Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v2.0.0.beta.9.1
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (27 sloc) 0.748 kb
require 'action_controller'
require 'webrat'
module ControllerExampleGroupBehaviour
extend ActiveSupport::Concern
include RSpec::Rails::SetupAndTeardownAdapter
include RSpec::Rails::TestUnitAssertionAdapter
include ActionController::TestCase::Behavior
include RSpec::Rails::ViewRendering
include Webrat::Matchers
include Webrat::Methods
include RSpec::Matchers
attr_reader :controller
module ClassMethods
def controller_class
describes
end
end
included do
before do
@routes = ::Rails.application.routes
ActionController::Base.allow_forgery_protection = false
end
end
RSpec.configure do |c|
c.include self, :example_group => { :file_path => /\bspec\/controllers\// }
end
end
Jump to Line
Something went wrong with that request. Please try again.