Skip to content

Commit cc0c7da

Browse files
committed
Merge pull request #55 from ruby-rdf/feature/transactional-insert
Check correct requirement for transactional insert
2 parents 49ee769 + ecd8937 commit cc0c7da

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/rdf/spec/repository.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@
5050
it 'commits a successful transaction' do
5151
statement = RDF::Statement(:s, RDF.type, :o)
5252
expect(subject).to receive(:commit_transaction).and_call_original
53-
53+
5454
expect do
55-
subject.transaction(mutable: true) do
56-
insert(statement)
57-
end
58-
end.to change { subject.statements }.to contain_exactly(statement)
55+
subject.transaction(mutable: true) { insert(statement) }
56+
end.to change { subject.statements }.to include(statement)
5957
end
6058

6159
it 'rolls back a failed transaction' do

0 commit comments

Comments
 (0)