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

Version Path
json-ld-3.2.4 spec/suite_http_spec.rb
json-ld-3.2.3 spec/suite_http_spec.rb
json-ld-3.2.2 spec/suite_http_spec.rb
json-ld-3.2.1 spec/suite_http_spec.rb
json-ld-3.2.0 spec/suite_http_spec.rb
json-ld-3.1.10 spec/suite_http_spec.rb
json-ld-3.1.9 spec/suite_http_spec.rb
json-ld-3.1.8 spec/suite_http_spec.rb
json-ld-3.1.7 spec/suite_http_spec.rb
json-ld-3.1.6 spec/suite_http_spec.rb
json-ld-3.1.5 spec/suite_http_spec.rb
json-ld-3.1.4 spec/suite_http_spec.rb
json-ld-3.1.3 spec/suite_http_spec.rb
json-ld-3.1.2 spec/suite_http_spec.rb
json-ld-3.1.1 spec/suite_http_spec.rb
json-ld-3.1.0 spec/suite_http_spec.rb