File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8484 end
8585 end
8686
87+ describe '#snapshot' do
88+ it 'is implemented when #supports(:snapshots) is true' do
89+ if mutable . supports? ( :snapshots )
90+ expect ( mutable . snapshot ) . to be_a RDF ::Dataset
91+ else
92+ expect { mutable . snapshot } . to raise_error NotImplementedError
93+ end
94+ end
95+ end
96+
8797 context "when updating statements" do
8898 let ( :s1 ) { RDF ::Statement ( resource , RDF ::URI . new ( "urn:predicate:1" ) , RDF ::URI . new ( "urn:object:1" ) ) }
8999 let ( :s2 ) { RDF ::Statement ( resource , RDF ::URI . new ( "urn:predicate:2" ) , RDF ::URI . new ( "urn:object:2" ) ) }
Original file line number Diff line number Diff line change 7777 end
7878 end
7979
80+ it 'has repeatable read isolation or better' do
81+ if repository . supports? :snapshots
82+ good_isolation = [ :repeatable_read , :snapshot , :serializable ]
83+ expect ( good_isolation ) . to include repository . isolation_level
84+ end
85+ end
86+
8087 it 'gives an accurate snapshot' do
8188 if repository . supports? :snapshots
8289 snap = repository . snapshot
You can’t perform that action at this time.
0 commit comments