1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/controller/addresses_render_test.rb

36 lines
706 B
Ruby
Raw Normal View History

require 'abstract_unit'
2009-05-13 04:10:37 -04:00
require 'logger'
2009-09-06 22:42:05 -04:00
require 'controller/fake_controllers'
class Address
def Address.count(conditions = nil, join = nil)
nil
end
def Address.find_all(arg1, arg2, arg3, arg4)
[]
end
def self.find(*args)
[]
end
end
class AddressesTest < ActionController::TestCase
2009-09-06 22:42:05 -04:00
tests AddressesController
def setup
super
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
# a more accurate simulation of what happens in "real life".
@controller.logger = Logger.new(nil)
@request.host = "www.nextangle.com"
end
def test_list
get :list
assert_equal "We only need to get this far!", @response.body.chomp
end
end