Skip to content

Commit 5a46a67

Browse files
committed
Merge pull request #30 from ruby-rdf/feature/call-original
Allow Reader#for to call original
2 parents 3a87a17 + 6414b95 commit 5a46a67

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)