summaryrefslogtreecommitdiff
path: root/spec/ruby/library/uri/shared/join.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/uri/shared/join.rb')
-rw-r--r--spec/ruby/library/uri/shared/join.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/uri/shared/join.rb b/spec/ruby/library/uri/shared/join.rb
index ff85b57a80..b1f5f1c72b 100644
--- a/spec/ruby/library/uri/shared/join.rb
+++ b/spec/ruby/library/uri/shared/join.rb
@@ -18,9 +18,9 @@ describe :uri_join, shared: true do
end
it "raises an error if given no argument" do
- lambda {
+ -> {
@object.join
- }.should raise_error(ArgumentError)
+ }.should.raise(ArgumentError)
end
it "doesn't create redundant '/'s" do