summaryrefslogtreecommitdiff
path: root/spec/ruby/library/uri/select_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/uri/select_spec.rb')
-rw-r--r--spec/ruby/library/uri/select_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/uri/select_spec.rb b/spec/ruby/library/uri/select_spec.rb
index 6e8c68cf40..c2eb6f8733 100644
--- a/spec/ruby/library/uri/select_spec.rb
+++ b/spec/ruby/library/uri/select_spec.rb
@@ -16,15 +16,15 @@ describe "URI#select" do
it "raises an ArgumentError if a component is requested that isn't valid under the given scheme" do
[
- lambda {URI("mailto:[email protected]").select(:path)},
- lambda {URI("http://blog.blag.web").select(:typecode)},
+ -> {URI("mailto:[email protected]").select(:path)},
+ -> {URI("http://blog.blag.web").select(:typecode)},
].each do |select_lambda|
select_lambda.should raise_error(ArgumentError)
end
end
it "raises an ArgumentError if given strings rather than symbols" do
- lambda {
+ -> {
URI("http://host:8080/path/").select("scheme","host","port",'path')
}.should raise_error(ArgumentError)
end