summaryrefslogtreecommitdiff
path: root/spec/ruby/library/uri/set_component_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2019-07-27 12:40:09 +0200
committerBenoit Daloze <[email protected]>2019-07-27 12:40:09 +0200
commit5c276e1cc91c5ab2a41fbf7827af2fed914a2bc0 (patch)
tree05b5c68c8b2a00224d4646ea3b26ce3877efaadd /spec/ruby/library/uri/set_component_spec.rb
parenta06301b103371b0b7da8eaca26ba744961769f99 (diff)
Update to ruby/spec@875a09e
Diffstat (limited to 'spec/ruby/library/uri/set_component_spec.rb')
-rw-r--r--spec/ruby/library/uri/set_component_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/ruby/library/uri/set_component_spec.rb b/spec/ruby/library/uri/set_component_spec.rb
index 71ed6af278..642a5d6fcf 100644
--- a/spec/ruby/library/uri/set_component_spec.rb
+++ b/spec/ruby/library/uri/set_component_spec.rb
@@ -27,19 +27,19 @@ describe "URI#select" do
uri.to_s.should == 'http://foo:bar@zab:8080/?a=1#b123'
uri = URI.parse('http://example.com')
- lambda { uri.password = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.password = 'bar' }.should raise_error(URI::InvalidURIError)
uri.userinfo = 'foo:bar'
uri.to_s.should == 'http://foo:[email protected]'
- lambda { uri.registry = 'bar' }.should raise_error(URI::InvalidURIError)
- lambda { uri.opaque = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.registry = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.opaque = 'bar' }.should raise_error(URI::InvalidURIError)
uri = URI.parse('mailto:[email protected]')
- lambda { uri.user = 'bar' }.should raise_error(URI::InvalidURIError)
- lambda { uri.password = 'bar' }.should raise_error(URI::InvalidURIError)
- lambda { uri.userinfo = ['bar', 'baz'] }.should raise_error(URI::InvalidURIError)
- lambda { uri.host = 'bar' }.should raise_error(URI::InvalidURIError)
- lambda { uri.port = 'bar' }.should raise_error(URI::InvalidURIError)
- lambda { uri.path = 'bar' }.should raise_error(URI::InvalidURIError)
- lambda { uri.query = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.user = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.password = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.userinfo = ['bar', 'baz'] }.should raise_error(URI::InvalidURIError)
+ -> { uri.host = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.port = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.path = 'bar' }.should raise_error(URI::InvalidURIError)
+ -> { uri.query = 'bar' }.should raise_error(URI::InvalidURIError)
end
end