Skip to content

Commit

Permalink
Fix a couple of failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Oct 30, 2024
1 parent 2e3ef02 commit a903547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_alternate_domains.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TestAlternateDomains < Test::Unit::TestCase
def test_http_redirects_to_https
resp = get_url('http://alexwlchan.net')

assert_equal resp.code, '301'
assert_equal resp.code, '308'
assert_equal resp['location'], 'https://alexwlchan.net/'
end

Expand All @@ -24,7 +24,7 @@ def test_http_redirects_to_https
def test_http_redirects_to_https_with_path
resp = get_url('http://alexwlchan.net/contact/')

assert_equal resp.code, '301'
assert_equal resp.code, '308'
assert_equal resp['location'], 'https://alexwlchan.net/contact/'
end

Expand Down

0 comments on commit a903547

Please sign in to comment.