Skip to content

Commit a811c4b

Browse files
author
Tom Johnson
committed
Remove duplicate Transactable tests from Repository
1 parent 6a722c9 commit a811c4b

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

lib/rdf/spec/repository.rb

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -48,35 +48,6 @@
4848
end
4949
end
5050

51-
describe "#transaction" do
52-
it 'gives an immutable transaction' do
53-
expect { subject.transaction { insert([]) } }.to raise_error TypeError
54-
end
55-
56-
it 'commits a successful transaction' do
57-
statement = RDF::Statement(:s, RDF.type, :o)
58-
expect(subject).to receive(:commit_transaction).and_call_original
59-
60-
expect do
61-
subject.transaction(mutable: true) { insert(statement) }
62-
end.to change { subject.statements }.to include(statement)
63-
end
64-
65-
it 'rolls back a failed transaction' do
66-
original_contents = subject.statements
67-
expect(subject).to receive(:rollback_transaction).and_call_original
68-
69-
expect do
70-
subject.transaction(mutable: true) do
71-
delete(*@statements)
72-
raise 'my error'
73-
end
74-
end.to raise_error RuntimeError
75-
76-
expect(subject.statements).to contain_exactly(*original_contents)
77-
end
78-
end
79-
8051
context "with snapshot support" do
8152

8253
describe '#snapshot' do

0 commit comments

Comments
 (0)