diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-19 02:44:45 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-19 02:44:45 +0000 |
commit | aae37bb4f7edd6a1820e420a60560369c6064f33 (patch) | |
tree | 5642ff690036cac09bc697a0798dd984128d6e73 /activesupport/test/test_test.rb | |
parent | 3ffdfa84fc1f9bebc578fe957646af5f194ca625 (diff) | |
download | rails-aae37bb4f7edd6a1820e420a60560369c6064f33.tar.gz rails-aae37bb4f7edd6a1820e420a60560369c6064f33.tar.bz2 rails-aae37bb4f7edd6a1820e420a60560369c6064f33.zip |
Extract ActiveSupport::Callbacks from Active Record, test case setup and teardown, and ActionController::Dispatcher. Closes #10727.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/test_test.rb')
-rw-r--r-- | activesupport/test/test_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/test_test.rb b/activesupport/test/test_test.rb index 88b505e59c..1e75e18602 100644 --- a/activesupport/test/test_test.rb +++ b/activesupport/test/test_test.rb @@ -79,9 +79,9 @@ class SetupAndTeardownTest < Test::Unit::TestCase teardown :foo, :sentinel, :foo def test_inherited_setup_callbacks - assert_equal [:reset_callback_record, :foo], self.class.setup_callback_chain + assert_equal [:reset_callback_record, :foo], self.class.setup_callback_chain.map(&:method) assert_equal [:foo], @called_back - assert_equal [:foo, :sentinel, :foo], self.class.teardown_callback_chain + assert_equal [:foo, :sentinel, :foo], self.class.teardown_callback_chain.map(&:method) end protected @@ -104,9 +104,9 @@ class SubclassSetupAndTeardownTest < SetupAndTeardownTest teardown :bar def test_inherited_setup_callbacks - assert_equal [:reset_callback_record, :foo, :bar], self.class.setup_callback_chain + assert_equal [:reset_callback_record, :foo, :bar], self.class.setup_callback_chain.map(&:method) assert_equal [:foo, :bar], @called_back - assert_equal [:foo, :sentinel, :foo, :bar], self.class.teardown_callback_chain + assert_equal [:foo, :sentinel, :foo, :bar], self.class.teardown_callback_chain.map(&:method) end protected |