Temporary base class

Temporary base class

Methods
A
G
T
Class Public methods
testing(klass = nil)
# File actionpack/test/abstract_unit.rb, line 224
def self.testing(klass = nil)
  if klass
    @testing = "/#{klass.name.underscore}".sub!(/_controller$/, '')
  else
    @testing
  end
end
Instance Public methods
assert_body(body)
# File actionpack/test/abstract_unit.rb, line 240
def assert_body(body)
  assert_equal body, Array(response.body).join
end
assert_content_type(type)
# File actionpack/test/abstract_unit.rb, line 256
def assert_content_type(type)
  assert_equal type, response.headers["Content-Type"]
end
assert_header(name, value)
# File actionpack/test/abstract_unit.rb, line 260
def assert_header(name, value)
  assert_equal value, response.headers[name]
end
assert_response(body, status = 200, headers = {})
# File actionpack/test/abstract_unit.rb, line 248
def assert_response(body, status = 200, headers = {})
  assert_body body
  assert_status status
  headers.each do |header, value|
    assert_header header, value
  end
end
assert_status(code)
# File actionpack/test/abstract_unit.rb, line 244
def assert_status(code)
  assert_equal code, response.status
end
get(thing, *args)
# File actionpack/test/abstract_unit.rb, line 232
def get(thing, *args)
  if thing.is_a?(Symbol)
    super("#{self.class.testing}/#{thing}", *args)
  else
    super
  end
end