spec/vocab_spec.rb in rdf-vocab-2.0.1 vs spec/vocab_spec.rb in rdf-vocab-2.0.2

- old
+ new

@@ -7,9 +7,17 @@ it "enumerates pre-defined vocabularies" do expect {|b| RDF::Vocabulary.each(&b)}.to yield_control.at_least(RDF::Vocab::VOCABS.keys.length).times end end + context "schema.org" do + %w(domainIncludes rangeIncludes inverseOf).each do |prop| + it "defines schema:#{prop}" do + expect {RDF::Vocab::SCHEMA[prop]}.not_to raise_error + end + end + end + context "pre-defined vocabularies" do RDF::Vocab::VOCABS.each do |id, params| class_name = params.fetch(:class_name, id.to_s.upcase).to_sym context id do it "defines RDF::Vocab::#{class_name}" do