Skip to content

Commit

Permalink
Refactored: Minor use of variable in Sinatra test.
Browse files Browse the repository at this point in the history
  • Loading branch information
delner committed Dec 19, 2017
1 parent 95b7cc1 commit f32ec8a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/contrib/sinatra/multi_app_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,8 @@ def test_resource_name_with_script_name
@use_multi_app = true
enable_script_names!

first_path = '/one/endpoint'
get first_path

second_path = '/two/endpoint'
get second_path
get '/one/endpoint'
get '/two/endpoint'

spans = @writer.spans.select { |s| s.name == 'sinatra.request' }
assert_equal(2, spans.length)
Expand Down

0 comments on commit f32ec8a

Please sign in to comment.