Skip to content

Commit

Permalink
expect a UA
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Feb 21, 2025
1 parent 099ea26 commit f81132f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/html-proofer/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
it "has only one UA" do
http = make_bin(%|--typhoeus='{"verbose":true,"headers":{"User-Agent":"Mozilla/5.0 (Macintosh; My New User-Agent)"}}' --as-links https://linkedin.com|)
expect(http.scan("User-Agent: Typhoeus").count).to(eq(0))
expect(http.scan(%r{User-Agent: Mozilla/5.0 \(Macintosh; My New User-Agent\)}i).count).to(eq(2))
expect(http.match(%r{User-Agent: Mozilla/5.0 \(Macintosh; My New User-Agent\)}i)).not_to(be_nil)
end

it "supports hydra" do
Expand Down

0 comments on commit f81132f

Please sign in to comment.