diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-28 05:21:24 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-28 05:21:24 +0000 |
commit | 16558f6dd83d514f783ed13e9bc24d6b66e5aefd (patch) | |
tree | 79769c2be74da20de923b10202bc6e128da036a8 /actionpack/test/controller | |
parent | 0c0610d398a89f5a74c9fee593eee1bb10975a46 (diff) | |
download | rails-16558f6dd83d514f783ed13e9bc24d6b66e5aefd.tar.gz rails-16558f6dd83d514f783ed13e9bc24d6b66e5aefd.tar.bz2 rails-16558f6dd83d514f783ed13e9bc24d6b66e5aefd.zip |
Ensure that test case setup is run even if overridden. Closes #10382.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/test_test.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb index 11e48da91c..68eee4f4a3 100644 --- a/actionpack/test/controller/test_test.rb +++ b/actionpack/test/controller/test_test.rb @@ -614,10 +614,19 @@ class InferringClassNameTest < Test::Unit::TestCase end end +class ContentControllerTest < ActionController::TestCase + def setup + # Should not override ActionController setup methods + end + + def test_should_still_setup_controller + assert_kind_of(ContentController, @controller) + end +end + class CrazyNameTest < ActionController::TestCase tests ContentController def test_controller_class_can_be_set_manually_not_just_inferred assert_equal ContentController, self.class.controller_class end end - |