aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorKen Collins <ken@metaskills.net>2015-11-03 19:18:56 -0500
committerKen Collins <ken@metaskills.net>2015-11-03 19:18:56 -0500
commitc8b24cc2675aceb020a8b8c8ee46854ab30d0125 (patch)
treeb638aa599696c530534689f8d469250c9dcaef0b /activesupport
parente37b470a6675a05df5a57455a3ac8c1c88ef04d6 (diff)
downloadrails-c8b24cc2675aceb020a8b8c8ee46854ab30d0125.tar.gz
rails-c8b24cc2675aceb020a8b8c8ee46854ab30d0125.tar.bz2
rails-c8b24cc2675aceb020a8b8c8ee46854ab30d0125.zip
Update docs/comments to use setup/teardown blocks vs. methods.
As discussed in the minitest-spec-rails issue (http://git.io/vlHxx) Rails uses setup/teardown callbacks. Defining `setup` or `teardown` methods vs. blocks will yield inconsistent behavior in the callback chain.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/log_subscriber/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/log_subscriber/test_helper.rb b/activesupport/lib/active_support/log_subscriber/test_helper.rb
index cbc20c103d..0abedafe76 100644
--- a/activesupport/lib/active_support/log_subscriber/test_helper.rb
+++ b/activesupport/lib/active_support/log_subscriber/test_helper.rb
@@ -10,7 +10,7 @@ module ActiveSupport
# class SyncLogSubscriberTest < ActiveSupport::TestCase
# include ActiveSupport::LogSubscriber::TestHelper
#
- # def setup
+ # setup do
# super
# ActiveRecord::LogSubscriber.attach_to(:active_record)
# end