Skip to content

Commit 638082f

Browse files
update test
1 parent 9205b58 commit 638082f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/app_profiler/viewer/speedscope_remote_viewer_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class SpeedscopeRemoteViewerTest < TestCase
2525
viewer.view
2626
end
2727

28-
test "#view with response redirects to URL" do
28+
test "#view with response redirects to URL when autoredirect is set" do
2929
response = [200, {}, ["OK"]]
3030
profile = BaseProfile.from_stackprof(stackprof_profile)
3131

3232
viewer = SpeedscopeRemoteViewer.new(profile)
3333
id = SpeedscopeRemoteViewer::Middleware.id(profile.file)
3434

35-
viewer.view(response: response)
35+
viewer.view(response: response, autoredirect: true)
3636

3737
assert_equal(303, response[0])
3838
assert_equal("/app_profiler/#{id}", response[1]["Location"])

0 commit comments

Comments
 (0)