Skip to content

Commit

Permalink
URI.parse behavior also changed in Ruby 3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Dec 15, 2023
1 parent 808e1f8 commit cf1b20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@

describe 'constructor' do
it 'should reject valid URIs with no hostname' do
if RUBY_VERSION >= "3.2.0"
if RUBY_VERSION >= "3.2.0" || RUBY_VERSION >= "3.1.4"
expect(URI.parse('http:///').hostname).to be_empty
else
expect(URI.parse('http:///').hostname).to be_nil
Expand Down

0 comments on commit cf1b20f

Please sign in to comment.