We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48aa057 + c363989 commit 48f0a6aCopy full SHA for 48f0a6a
1 file changed
lib/rdf/spec/transactable.rb
@@ -39,5 +39,17 @@
39
40
expect(subject.statements).to contain_exactly(*original_contents)
41
end
42
+
43
+ context 'without block given' do
44
+ it 'returns a transaction' do
45
+ expect(subject.transaction).to be_a RDF::Transaction
46
+ end
47
48
+ it 'the returned transaction is live' do
49
+ tx = subject.transaction(mutable: true)
50
+ tx.insert(RDF::Statement(:s, RDF.type, :o))
51
+ expect { tx.execute }.not_to raise_error
52
53
54
55
0 commit comments