Sha256: 11af069e876bd2d8184c24f186ace15a5a35d004b9ae8d38abe75e02833b78a6

Contents?: true

Size: 952 Bytes

Versions: 3

Compression:

Stored size: 952 Bytes

Contents

# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
# License:   Apache License, Version 2.0

require File.dirname(__FILE__) + '/../../spec_helper'

module RTM::IO::ToRDF::TopicMap

  describe self do
    before(:each) do
      @tm = get_used_tm_sys_tm
      @tm.from_ctm(File.dirname(__FILE__) + "/../../resources/toyTM.ctm")
    end
    after(:each) do
      @tm.close
    end

    describe "#to_rdf" do
      it "should be callable on an Ontopia topic map" do
        if implementation_for_spec == :ontopia
          lambda{@tm.to_rdf}.should_not raise_error
          @tm.to_rdf.should be_a_kind_of String
        else
          lambda{@tm.to_rdf}.should raise_error
        end
      end
    end

    describe "#to_rdf_ontopia" do
      it "should be callable on an Ontopia topic map" do
        if implementation_for_spec == :ontopia
          @tm.to_rdf_ontopia.should be_a_kind_of String
        end
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rtm-0.3.0 spec/rtm/io/to_rdf_spec.rb
rtm-0.2.1 spec/rtm/io/to_rdf_spec.rb
rtm-0.2 spec/rtm/io/to_rdf_spec.rb