Sha256: 3c8dd4a3e8df83c8ce9f0ebb79cfa81abf008a3d927f7ccb07d7e5bc3c48b095
Contents?: true
Size: 1.13 KB
Versions: 16
Compression:
Stored size: 1.13 KB
Contents
# coding: utf-8 require_relative 'spec_helper' require 'rack/linkeddata' require 'rack/test' begin describe JSON::LD do describe "test suite" do require_relative 'suite_helper' m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}http-manifest.jsonld") describe m.name do include ::Rack::Test::Methods before(:all) {JSON::LD::Writer.default_context = "#{Fixtures::SuiteTest::SUITE}http/default-context.jsonld"} after(:all) {JSON::LD::Writer.default_context = nil} let(:app) do JSON::LD::ContentNegotiation.new( Rack::LinkedData::ContentNegotiation.new( double("Target Rack Application", :call => [200, {}, @results]), {} ) ) end m.entries.each do |t| specify "#{t.property('@id')}: #{t.name} unordered#{' (negative test)' unless t.positiveTest?}" do t.options[:ordered] = false expect {t.run self}.not_to write.to(:error) end end end end end unless ENV['CI'] rescue IOError # Skip this until such a test suite is re-added end
Version data entries
16 entries across 16 versions & 1 rubygems