Skip to content

Commit

Permalink
Only test atomic #delete_insert for :atomic_write
Browse files Browse the repository at this point in the history
Repositories that do not support :atomic_write don't need to implement
atomic delete/insert operations.
  • Loading branch information
Tom Johnson committed Feb 17, 2016
1 parent f4c9231 commit 670f1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/spec/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

describe '#delete_insert' do
it 'updates transactionally' do
if mutable.mutable?
if mutable.mutable? & mutable.supports?(:atomic_write)
expect(mutable).to receive(:commit_transaction).and_call_original
statement = RDF::Statement(:s, RDF::URI.new("urn:predicate:1"), :o)

Expand Down

0 comments on commit 670f1c3

Please sign in to comment.