Skip to content

Commit 0acb718

Browse files
author
Tom Johnson
committed
Isolate Transactable#transaction test from blank nodes
This test used to implictly test stablity of blank node identifers across multiple `#statements` calls. By using URIs instead of blank nodes, we avoid failures when they change.
1 parent a811c4b commit 0acb718

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/rdf/spec/transactable.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
end
1919

2020
it 'commits a successful transaction' do
21-
statement = RDF::Statement(:s, RDF.type, :o)
21+
statement = RDF::Statement(RDF::URI('http://example.com/s'),
22+
RDF.type,
23+
RDF::URI('http://example.com/o'))
2224
expect(subject).to receive(:commit_transaction).and_call_original
2325

2426
expect do

0 commit comments

Comments
 (0)