diff --git a/test/exclude_methods_test.rb b/test/exclude_methods_test.rb index f40c950c..af373d3b 100644 --- a/test/exclude_methods_test.rb +++ b/test/exclude_methods_test.rb @@ -34,7 +34,7 @@ def self.f end class ExcludeMethodsTest < 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_methods_can_be_profiled obj = ExcludeMethodsClass.new prf = RubyProf::Profile.new(measure_mode: RubyProf::WALL_TIME) diff --git a/test/line_number_test.rb b/test/line_number_test.rb index 9c3bb32a..098c3493 100644 --- a/test/line_number_test.rb +++ b/test/line_number_test.rb @@ -130,7 +130,7 @@ def test_function_line_no assert_equal(1, method.call_trees.callees.count) call_tree = method.call_trees.callees[0] assert_equal('LineNumbers#method_1', call_tree.target.full_name) - assert_equal(35, call_tree.line) + assert_equal(36, call_tree.line) end else def test_function_line_no