lib/rdf/spec/transactable.rb in rdf-spec-2.0.0 vs lib/rdf/spec/transactable.rb in rdf-spec-2.2.0.pre.rc1

- old
+ new

@@ -16,10 +16,12 @@ it 'gives an immutable transaction' do expect { subject.transaction { insert([]) } }.to raise_error TypeError 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 subject.transaction(mutable: true) { insert(statement) } end.to change { subject.statements }.to include(statement)