Skip to content

Commit 670f1c3

Browse files
author
Tom Johnson
committed
Only test atomic #delete_insert for :atomic_write
Repositories that do not support :atomic_write don't need to implement atomic delete/insert operations.
1 parent f4c9231 commit 670f1c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/spec/repository.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

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

0 commit comments

Comments
 (0)