Skip to content

Commit 2caa5f5

Browse files
committed
Update expectation for RDF:URI with a hash argument, due to updates to rspec-mock.
1 parent b710c4e commit 2caa5f5

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

lib/rdf/model/list.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
##

spec/model_uri_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@
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",
@@ -77,8 +77,7 @@
7777
port: 8080,
7878
path: "/path",
7979
query: "query=value",
80-
fragment: "fragment"
81-
})
80+
fragment: "fragment"})
8281
end
8382
end
8483

0 commit comments

Comments
 (0)