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, 3 insertions, 1 deletions
diff --git a/spec/ruby/library/uri/shared/join.rb b/spec/ruby/library/uri/shared/join.rb
index dfe44e9be2..ff85b57a80 100644
--- a/spec/ruby/library/uri/shared/join.rb
+++ b/spec/ruby/library/uri/shared/join.rb
@@ -18,7 +18,9 @@ describe :uri_join, shared: true do
end
it "raises an error if given no argument" do
- lambda{ @object.join }.should raise_error
+ lambda {
+ @object.join
+ }.should raise_error(ArgumentError)
end
it "doesn't create redundant '/'s" do