summaryrefslogtreecommitdiff
path: root/spec/ruby/library/uri/uri_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/uri/uri_spec.rb')
-rw-r--r--spec/ruby/library/uri/uri_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/uri/uri_spec.rb b/spec/ruby/library/uri/uri_spec.rb
index 90936a770f..eab4e7176c 100644
--- a/spec/ruby/library/uri/uri_spec.rb
+++ b/spec/ruby/library/uri/uri_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'uri'
#the testing is light here as this is an alias for URI.parse
@@ -19,11 +19,11 @@ describe "the URI method" do
it "returns the argument if it is a URI object" do
result = URI.parse("http://ruby-lang.org")
- URI(result).should equal(result)
+ URI(result).should.equal?(result)
end
#apparently this was a concern? imported from MRI tests
it "does not add a URI method to Object instances" do
- lambda {Object.new.URI("http://ruby-lang.org/")}.should raise_error(NoMethodError)
+ -> {Object.new.URI("http://ruby-lang.org/")}.should.raise(NoMethodError)
end
end