We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 49ee769 + ecd8937 commit cc0c7daCopy full SHA for cc0c7da
1 file changed
lib/rdf/spec/repository.rb
@@ -50,12 +50,10 @@
50
it 'commits a successful transaction' do
51
statement = RDF::Statement(:s, RDF.type, :o)
52
expect(subject).to receive(:commit_transaction).and_call_original
53
-
+
54
expect do
55
- subject.transaction(mutable: true) do
56
- insert(statement)
57
- end
58
- end.to change { subject.statements }.to contain_exactly(statement)
+ subject.transaction(mutable: true) { insert(statement) }
+ end.to change { subject.statements }.to include(statement)
59
end
60
61
it 'rolls back a failed transaction' do
0 commit comments