Suppression de warnings

This commit is contained in:
Jérémy Lecour 2016-04-28 22:58:19 +02:00
parent 4a40924d7a
commit 426b944b58
3 changed files with 6 additions and 6 deletions

View file

@ -16,7 +16,7 @@ class CookiesTest < Minitest::Test
"/faq",
].each do |path|
url = "https://#{domain}#{path}"
page = @agent.get(url)
@agent.get(url)
refute_has_session_cookie @agent, "_example_session", "for #{url}"
end
@ -28,7 +28,7 @@ class CookiesTest < Minitest::Test
"/store",
].each do |path|
url = "https://#{domain}#{path}"
page = @agent.get(url)
@agent.get(url)
assert_has_session_cookie @agent, "_example_session", "for #{url}"
end

View file

@ -66,7 +66,7 @@ class HTTPCacheTest < Minitest::Test
flunk "Expected to find a Last-Modified header for #{url} on 1st visit"
end
if etag = etag_header(page1)
if etag_header(page1)
# il faut reinitialiser l'agent pour vider le cache et l'historique
@agent.reset
page2b = @agent.get(url, [], nil, {

View file

@ -15,19 +15,19 @@ class SecurityTest < Minitest::Test
def test_certificate
output = `#{check_ssl_cert_cmd(domain)}`
assert_match /\ASSL_CERT OK/, output, output
assert_match(/\ASSL_CERT OK/, output, output)
end
def test_accepts_tls_v1
output = `#{openssl_verify_cmd(domain, "-tls1")}`
assert_match /Verify return code: 0 \(ok\)/, output, "Expected to accept TLSv1"
assert_match(/Verify return code: 0 \(ok\)/, output, "Expected to accept TLSv1")
end
def test_refuse_ssl_v3
output = `#{openssl_verify_cmd(domain, "-ssl3")}`
assert_match /sslv3 alert handshake failure/, output, "Expected to refuse SSLv3"
assert_match(/sslv3 alert handshake failure/, output, "Expected to refuse SSLv3")
end
def test_hsts_header