Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannchaudet committed Sep 13, 2024
1 parent 295d9af commit 9560b2c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/github_pages_health_check/domain_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -663,14 +663,12 @@
end
end

context "no protocol switch" do
context "Protocol redirections" do
let(:log_file) { "/tmp/bad-redirection.log" }
before do
File.open(log_file, "w") # truncate log file after each test
end

it "it follows ftp if requested" do
# Make a real request to a local server started with /script/test-redirections
File.open(log_file, "w") # truncate log file
Typhoeus.get(
"http://localhost:9988",
GitHubPages::HealthCheck.typhoeus_options.merge(:redir_protocols => %i[http https ftp])
Expand All @@ -682,6 +680,7 @@

it "it does not follow anything other than http/https by default" do
# Make a real request to a local server started with /script/test-redirections
File.open(log_file, "w") # truncate log file
Typhoeus.get(
"http://localhost:9988",
GitHubPages::HealthCheck.typhoeus_options
Expand Down

0 comments on commit 9560b2c

Please sign in to comment.