Skip to content

Commit

Permalink
Merge pull request #39 from ruby-rdf/feature/delete_enum
Browse files Browse the repository at this point in the history
Test `RDF::Enumerable` handling in `Mutable#delete`
  • Loading branch information
gkellogg committed Nov 7, 2015
2 parents 1217c88 + 7a3efeb commit 3832226
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 3832226

Please sign in to comment.