Sha256: 63be665ec04085444ac6b85111ad496f78b5d7775574d892966024f8ca5a7250
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
# coding: utf-8 require_relative 'spec_helper' describe JSON::LD do describe "test suite" do require_relative 'suite_helper' m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}expand-manifest.jsonld") describe m.name do m.entries.each do |t| specify "#{t.property('@id')}: #{t.name} unordered#{' (negative test)' unless t.positiveTest?}" do t.options[:ordered] = false if %w(#t0068).include?(t.property('@id')) expect{t.run self}.to write("[DEPRECATION]").to(:error) elsif %w(#t0005 #tpr34 #tpr35 #tpr36 #tpr37 #t0119 #t0120).include?(t.property('@id')) expect{t.run self}.to write("beginning with '@' are reserved for future use").to(:error) else expect {t.run self}.not_to write.to(:error) end end specify "#{t.property('@id')}: #{t.name} ordered#{' (negative test)' unless t.positiveTest?}" do t.options[:ordered] = true if %w(#t0068).include?(t.property('@id')) expect{t.run self}.to write("[DEPRECATION]").to(:error) elsif %w(#t0005 #tpr34 #tpr35 #tpr36 #tpr37 #t0119 #t0120).include?(t.property('@id')) expect{t.run self}.to write("beginning with '@' are reserved for future use").to(:error) else expect {t.run self}.not_to write.to(:error) end end end end end end unless ENV['CI']
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json-ld-3.1.0 | spec/suite_expand_spec.rb |