Skip to content

Commit be030ec

Browse files
committed
Updated the CamelCase method name handler.
Also, fixed a bug that manifested in Ruby 2.4+.
1 parent 912b817 commit be030ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tree/utils/camel_case_method_handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Author:: Anupam Sengupta (anupamsg@gmail.com)
66
#
7-
# Time-stamp: <2017-12-21 12:49:02 anupam>
7+
# Time-stamp: <2017-12-21 13:42:15 anupam>
88
#
99
# Copyright (C) 2012, 2013, 2015, 2017 Anupam Sengupta <anupamsg@gmail.com>
1010
#

test/test_binarytree.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def test_old_camel_case_names
314314
assert_warn(StructuredWarnings::DeprecatedMethodWarning) {@root.leftChild = @left_child2}
315315
# noinspection RubyResolve
316316
assert_warn(StructuredWarnings::DeprecatedMethodWarning) {@root.rightChild = @right_child2}
317-
assert_raise(NoMethodError) {@root.to_snake_case('dummy')} # Make sure the right method is visible
317+
assert_raise(NoMethodError) {@root.DummyMethodDoesNotExist} # Make sure the right method is visible
318318

319319
end
320320

0 commit comments

Comments
 (0)