Skip to content

Commit

Permalink
Fix test against Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisbernard committed Oct 7, 2024
1 parent d4ecab5 commit ea34070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/agent_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_measure_class_method
assert_equal("code", section.kind)
assert_equal("/agent_test.rb", section.file)
assert_equal(line, section.line)
assert_equal("RorVsWild::AgentTest::Example.foo", section.commands.join)
assert_equal("RorVsWild::AgentTest::Example.foo", section.commands.to_a.join)
end

def test_measure_instance_method
Expand All @@ -78,7 +78,7 @@ def test_measure_instance_method
assert_equal("code", section.kind)
assert_equal("/agent_test.rb", section.file)
assert_equal(line, section.line)
assert_equal("RorVsWild::AgentTest::Example#bar", section.commands.join)
assert_equal("RorVsWild::AgentTest::Example#bar", section.commands.to_a.join)
end

def test_ignored_request?
Expand Down

0 comments on commit ea34070

Please sign in to comment.