From 516a1abb24cd6a822f36022ae4535554795fe6e5 Mon Sep 17 00:00:00 2001 From: Emily Michaud <59289146+emichaud998@users.noreply.github.com> Date: Wed, 30 Aug 2023 11:56:15 -0400 Subject: [PATCH] Fix outdated documentation on Advanced Test Features page of framework documentation (#385) --- docs/advanced-test-features/serving-http-requests.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/advanced-test-features/serving-http-requests.md b/docs/advanced-test-features/serving-http-requests.md index 1498794ed..5fc095301 100644 --- a/docs/advanced-test-features/serving-http-requests.md +++ b/docs/advanced-test-features/serving-http-requests.md @@ -63,15 +63,15 @@ class MyTestSuite < Inferno::TestSuite id :my_test_suite my_html = File.read(File.join(__dir__, 'my_html.html')) - my_html_route_handler = proc { [200, { 'Content-Type' => 'text/html' }, [html]] } + my_html_route_handler = proc { [200, { 'Content-Type' => 'text/html' }, [my_html]] } - # Serve an html page at INFERNO_PATH/my_test_suite/custom/my_html_page + # Serve an html page at INFERNO_PATH/custom/my_test_suite/my_html_page route :get, '/my_html_page', my_html_route_handler my_jwks = File.read(File.join(__dir__, 'my_jwks.json')) my_jwks_route_handler = proc { [200, { 'Content-Type' => 'application/json' }, [my_jwks]] } - # Serve a JSON file at INFERNO_PATH/my_test_suite/custom/.well-known/jwks.json + # Serve a JSON file at INFERNO_PATH/custom/my_test_suite/.well-known/jwks.json route :get, '/.well-known/jwks.json', my_jwks_route_handler end ```