diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2015-12-19 04:14:58 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2015-12-19 04:14:58 +0530 |
commit | 0e5b6d59582742c3d33eb23b3ba693c238b77d34 (patch) | |
tree | c88e74914e53c83b39fd36dd0605ef489d328d60 | |
parent | 0af3722335795c6b7c0ff557d229e47566dfbed2 (diff) | |
download | rails-0e5b6d59582742c3d33eb23b3ba693c238b77d34.tar.gz rails-0e5b6d59582742c3d33eb23b3ba693c238b77d34.tar.bz2 rails-0e5b6d59582742c3d33eb23b3ba693c238b77d34.zip |
[ActionCable] declare asset_logged private
-rw-r--r-- | actioncable/test/channel/base_test.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/actioncable/test/channel/base_test.rb b/actioncable/test/channel/base_test.rb index b8b3c6a139..d41bf3064b 100644 --- a/actioncable/test/channel/base_test.rb +++ b/actioncable/test/channel/base_test.rb @@ -166,19 +166,19 @@ class ActionCable::Channel::BaseTest < ActiveSupport::TestCase end end - def assert_logged(message) - old_logger = @connection.logger - log = StringIO.new - @connection.instance_variable_set(:@logger, Logger.new(log)) - - begin - yield - - log.rewind - assert_match message, log.read - ensure - @connection.instance_variable_set(:@logger, old_logger) + private + def assert_logged(message) + old_logger = @connection.logger + log = StringIO.new + @connection.instance_variable_set(:@logger, Logger.new(log)) + + begin + yield + + log.rewind + assert_match message, log.read + ensure + @connection.instance_variable_set(:@logger, old_logger) + end end - end - end |