Skip to content

Commit

Permalink
Isolate Transactable#transaction test from blank nodes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Tom Johnson committed Sep 30, 2016
1 parent a811c4b commit 0acb718
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rdf/spec/transactable.rb
Expand Up @@ -18,7 +18,9 @@
end

it 'commits a successful transaction' do
statement = RDF::Statement(:s, RDF.type, :o)
statement = RDF::Statement(RDF::URI('http://example.com/s'),
RDF.type,
RDF::URI('http://example.com/o'))
expect(subject).to receive(:commit_transaction).and_call_original

expect do
Expand Down

0 comments on commit 0acb718

Please sign in to comment.