Sha256: 8857ef21b4744d173fc4e36edf27c40d25d13975851c3bed398ed3138f781b93

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

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::TMAPIX::TopicMap

  describe self do
    before(:each) do
      @tm = get_used_tm_sys_tm
    end
    after(:each) do
      @tm.close
    end
    
    describe "#from_ltm" do
      it "should be tested"
    end
    
    describe "#from_ctm" do
      it "should be tested"
    end
    
    describe "#from_jtm" do
      it "should be tested"
    end
    
    describe "#from_tmxml" do
      it "should be tested"
    end
    
    describe "#from_xtm10" do
      it "should be tested"
    end
    
    describe "#from_xtm20" do
      it "should be tested"
    end
    
    describe "#from_xtm" do
      it "should be tested"
    end
    
    describe "#from_n3" do
      it "should be tested"
    end
    
    describe "#from_rdfxml" do
      it "should be tested"
    end
    
    describe "#to_xtm20" do
      it "should be tested"
    end
    
    describe "#to_xtm10" do
      it "should be tested"
    end
    
    describe "#to_jtm" do
      it "should be tested"
    end
    
    describe "#to_ltm" do
      it "should be tested"
    end
    
    describe "#to_tmxml" do
      it "should be tested"
    end
    
    describe "#to_ctm" do
      it "should export a topic map to ctm" do
        # filling ...
        @tm.from_xtm20(File.dirname(__FILE__) + "/../../resources/toyTM.xtm")
        @tm.to_ctm(File.dirname(__FILE__) + "/../../resources/toyTM_after_spec.ctm","http://www.example.org/toyTM_after_spec")
      end
      it "should read it afterwards" do
        emptyTM = get_used_tm_sys.create("http://blub.org/")
        emptyTM.from_ctm(File.dirname(__FILE__) + "/../../resources/toyTM_after_spec.ctm")
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtm-0.2.0 spec/rtm/io/tmapix_spec.rb