Skip to content

Commit adca395

Browse files
committed
Use logical-and, not bit-wise and when checking for supporting atomic writes.
1 parent 6968524 commit adca395

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/rdf/spec/repository.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838

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

0 commit comments

Comments
 (0)