Vendoring Rails 2.3.5

This commit is contained in:
Eric Allen 2009-12-07 12:42:42 -05:00
parent 3e83d19299
commit f8779795ce
943 changed files with 56503 additions and 61351 deletions

View file

@ -105,7 +105,7 @@ class ControllerInstanceTests < Test::Unit::TestCase
end
class PerformActionTest < Test::Unit::TestCase
class PerformActionTest < ActionController::TestCase
class MockLogger
attr_reader :logged
@ -129,6 +129,8 @@ class PerformActionTest < Test::Unit::TestCase
@response = ActionController::TestResponse.new
@request.host = "www.nextangle.com"
rescue_action_in_public!
end
def test_get_on_priv_should_show_selector
@ -164,14 +166,12 @@ class PerformActionTest < Test::Unit::TestCase
end
end
class DefaultUrlOptionsTest < Test::Unit::TestCase
class DefaultUrlOptionsTest < ActionController::TestCase
tests DefaultUrlOptionsController
def setup
@controller = DefaultUrlOptionsController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@request.host = 'www.example.com'
rescue_action_in_public!
end
def test_default_url_options_are_used_if_set
@ -189,14 +189,12 @@ class DefaultUrlOptionsTest < Test::Unit::TestCase
end
end
class EmptyUrlOptionsTest < Test::Unit::TestCase
class EmptyUrlOptionsTest < ActionController::TestCase
tests NonEmptyController
def setup
@controller = NonEmptyController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@request.host = 'www.example.com'
rescue_action_in_public!
end
def test_ensure_url_for_works_as_expected_when_called_with_no_options_if_default_url_options_is_not_set