Skip to content

Commit

Permalink
Test RDF::Enumerable handling in Mutable#delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Johnson committed Nov 7, 2015
1 parent 1217c88 commit 7a3efeb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/rdf/spec/mutable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@
end
end

it 'handles Enumerables' do
if subject.mutable?
subject.delete(@statements)
expect(subject.find { |s| subject.has_statement?(s) }).to be_nil
end
end

it "is_expected.to support wildcard deletions" do
if subject.mutable?
# nothing deleted
Expand Down

0 comments on commit 7a3efeb

Please sign in to comment.