We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 08b72ef + 6e30084 commit b38b035Copy full SHA for b38b035
1 file changed
lib/rdf/spec/transaction.rb
@@ -250,6 +250,26 @@
250
end
251
252
253
+ describe '#mutated?' do
254
+ let(:st) { RDF::Statement(:s, RDF::URI('http://example.com/p'), 'o') }
255
+
256
+ it 'returns true after a successful insert' do
257
+ begin
258
+ expect { subject.insert(st) }
259
+ .to change { subject.mutated? }.from(false).to(true)
260
+ rescue NotImplementedError; end
261
+ end
262
263
+ it 'returns true after a successful delete' do
264
+ repository.insert(st)
265
266
267
+ expect { subject.delete(st) }
268
269
270
271
272
273
describe '#execute' do
274
let(:st) { RDF::Statement(:s, RDF::URI('http://example.com/p'), 'o') }
275
0 commit comments