Skip to content

Commit

Permalink
update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballlover723 committed Aug 1, 2022
1 parent 781ee9a commit b5e929b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/addressable/uri_spec.rb
Expand Up @@ -1060,9 +1060,7 @@ def to_s
end

it "should not allow destructive operations" do
ruby_check = Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5.0")
error = ruby_check ? RuntimeError : FrozenError
expect { @uri.normalize! }.to raise_error(error)
expect { @uri.normalize! }.to raise_error(RuntimeError)
end
end

Expand Down

0 comments on commit b5e929b

Please sign in to comment.