File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ def <<(value)
476476 # @return [Integer]
477477 # @see http://ruby-doc.org/core-2.2.2/Array.html#method-i-3C-3D-3E
478478 def eql? ( other )
479- to_a . eql? other . to_a # TODO: optimize this
479+ to_a . eql? Array ( other )
480480 end
481481
482482 ##
Original file line number Diff line number Diff line change 6161 end
6262
6363 it "with hash arg" do
64- expect ( described_class ) . to receive ( :new ) . with ( scheme : "http" ,
64+ expect ( described_class ) . to receive ( :new ) . with ( { scheme : "http" ,
6565 user : "user" ,
6666 password : "password" ,
6767 host : "example.com" ,
6868 port : 8080 ,
6969 path : "/path" ,
7070 query : "query=value" ,
71- fragment : "fragment" )
71+ fragment : "fragment" } )
7272 RDF ::URI . new ( {
7373 scheme : "http" ,
7474 user : "user" ,
7777 port : 8080 ,
7878 path : "/path" ,
7979 query : "query=value" ,
80- fragment : "fragment"
81- } )
80+ fragment : "fragment" } )
8281 end
8382 end
8483
You can’t perform that action at this time.
0 commit comments