Skip to content

Commit 489cb2c

Browse files
committed
Improve basic auth test coverage
1 parent 6b9b5bc commit 489cb2c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spec/features/v2/basic_auth_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
expect(page).to have_http_status(:ok)
2525
end
2626

27+
scenario "I visit the homepage with incorrect basic auth bypass header" do
28+
page.driver.header "some-header", "some-incorrect-value"
29+
visit "/"
30+
expect(page).to have_http_status(:unauthorized)
31+
end
32+
2733
scenario "I visit the healthcheck page without setting authentication" do
2834
visit "/healthz"
2935
expect(page).to have_http_status(:ok)

0 commit comments

Comments
 (0)