diff --git a/spec/addressable/uri_spec.rb b/spec/addressable/uri_spec.rb index 4e3aced9..b1f95417 100644 --- a/spec/addressable/uri_spec.rb +++ b/spec/addressable/uri_spec.rb @@ -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