Sha256: 096b0993f935e46a7b2592645ac5e33531549582e301c8c3d5218fb9014c008b

Contents?: true

Size: 1.1 KB

Versions: 11

Compression:

Stored size: 1.1 KB

Contents

# encoding: UTF-8

# Copyright 2011 innoQ Deutschland GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'integration_test_helper'

class ConceptSchemeTest < ActionDispatch::IntegrationTest

  setup do
    @concept = FactoryGirl.create(:concept, :broader_relations => [])
  end

  test "list top concepts in rdf scheme" do
    visit "/scheme.ttl"

    assert page.has_content? ":scheme a skos:ConceptScheme"
    assert page.has_content? "skos:hasTopConcept :#{@concept.origin}"
  end

  test "top terms rdf" do
    visit "/#{@concept.origin}.ttl"

    assert page.has_content? "skos:topConceptOf :scheme"
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
iqvoc-4.0.9 test/integration/concept_scheme_test.rb
iqvoc-4.0.8 test/integration/concept_scheme_test.rb
iqvoc-4.0.7 test/integration/concept_scheme_test.rb
iqvoc-4.0.6 test/integration/concept_scheme_test.rb
iqvoc-4.0.5 test/integration/concept_scheme_test.rb
iqvoc-4.0.4 test/integration/concept_scheme_test.rb
iqvoc-4.0.3 test/integration/concept_scheme_test.rb
iqvoc-4.0.2 test/integration/concept_scheme_test.rb
iqvoc-4.0.1 test/integration/concept_scheme_test.rb
iqvoc-4.0.0 test/integration/concept_scheme_test.rb
iqvoc-3.5.7 test/integration/concept_scheme_test.rb