Skip to content

Commit 6414b95

Browse files
author
Tom Johnson
committed
Allow Reader#for to call original
This test failed if an implementation of Mutable calls `Reader#for` more than once. The change allows additional calls with other arguments to pass through to the original implementation.
1 parent 3a87a17 commit 6414b95

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/rdf/spec/mutable.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
it "should instantiate a reader" do
7777
reader = double("reader")
7878
expect(reader).to receive(:new).and_return(RDF::Spec.quads.first)
79+
allow(RDF::Reader).to receive(:for).and_call_original
7980
expect(RDF::Reader).to receive(:for).with(:a_reader).and_return(reader)
8081
subject.send(:from_a_reader)
8182
end

0 commit comments

Comments
 (0)