# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../../spec_helper' module RTM::IO::TmapiXFrom::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 import into an empty topic map" do @tm.from_ltm(File.dirname(__FILE__) + "/../../resources/toyTM.ltm") end end describe "#from_ctm" do it "should import into an empty topic map" do @tm.from_ctm(File.dirname(__FILE__) + "/../../resources/toyTM.ctm") end end describe "#from_jtm" do it "should import into an empty topic map" do #@tm.from_jtm(File.dirname(__FILE__) + "/../../resources/toyTM.jtm") end end describe "#from_tmxml" do it "should import into an empty topic map" do #@tm.from_tmxml(File.dirname(__FILE__) + "/../../resources/toyTM.tmxml") end end describe "#from_xtm10" do it "should import into an empty topic map" do #@tm.from_xtm10(File.dirname(__FILE__) + "/../../resources/toyTM_xtm10.xtm") end it "should provide an alias for from_xtm1" do @tm.method(:from_xtm1).should == @tm.method(:from_xtm10) end end describe "#from_xtm20" do it "should import into an empty topic map" do @tm.from_xtm20(File.dirname(__FILE__) + "/../../resources/toyTM.xtm") end it "should provide an alias for from_xtm2" do @tm.method(:from_xtm2).should == @tm.method(:from_xtm20) end end describe "#from_xtm" do it "should import into an empty topic map from xtm v2.0" do @tm.from_xtm20(File.dirname(__FILE__) + "/../../resources/toyTM.xtm") end it "should import into an empty topic map from xtm v1.0" do #@tm.from_xtm10(File.dirname(__FILE__) + "/../../resources/toyTM_xtm10.xtm") end end describe "#from_n3" do it "should be tested" end describe "#from_rdfxml" do it "should be tested" end end end