Skip to content

Commit

Permalink
Test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed Jan 7, 2024
1 parent 2c997a0 commit 5c6b47d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/line_number_test.rb
Expand Up @@ -28,7 +28,7 @@ def method_4

# -- Tests ----
class LineNumbersTest < TestCase
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.2')
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.3')
def test_function_line_no
numbers = LineNumbers.new

Expand Down Expand Up @@ -63,7 +63,7 @@ def test_function_line_no
assert_equal(1, method.call_trees.callers.count)
call_tree = method.call_trees.callers[0]
assert_equal('LineNumbersTest#test_function_line_no', call_tree.parent.target.full_name)
assert_equal(35, call_tree.line)
assert_equal(36, call_tree.line)

assert_equal(2, method.call_trees.callees.count)
call_tree = method.call_trees.callees[0]
Expand Down Expand Up @@ -123,7 +123,7 @@ def test_function_line_no
# Method 5
method = methods[5]
assert_equal('LineNumbersTest#test_function_line_no', method.full_name)
assert_equal(35, method.line)
assert_equal(36, method.line)

assert_equal(0, method.call_trees.callers.count)

Expand Down

0 comments on commit 5c6b47d

Please sign in to comment.