Skip to content

Commit

Permalink
Add regex test
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Aug 17, 2023
1 parent 873da5f commit 419fe18
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/multiverse/suites/roda/roda_instrumentation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ def test_roda_instrumentation_works_if_middleware_disabled
end
end

def test_roda_namer_removes_rogue_slashes
get('/home//')
txn = harvest_transaction_events![1][0]

assert_equal 'Controller/Roda/RodaTestApp/GET home', txn[0]['name']
end

def test_transaction_name_error
NewRelic::Agent.stub(:logger, NewRelic::Agent::MemoryLogger.new) do
# pass in {} to produce an error, because {} doesn't support #path and
Expand Down

0 comments on commit 419fe18

Please sign in to comment.