spec/support/shared_examples/rdf_source.rb in krikri-0.7.0 vs spec/support/shared_examples/rdf_source.rb in krikri-0.7.1
- old
+ new
@@ -44,9 +44,22 @@
end
end
end
end
+ describe '#save_and_reload' do
+ context 'with subject' do
+ include_context 'with RDF subject'
+ include_context 'with RDF statements'
+
+ it 'fetches the management triples' do
+ subject.save_and_reload
+ expect(subject.type)
+ .to include RDF::URI('http://www.w3.org/ns/ldp#RDFSource')
+ end
+ end
+ end
+
describe '#save_with_provenance' do
include_context 'with RDF subject'
let(:activity_uri) { RDF::URI 'http://example.org/act' }