Sha256: 804cd3ad148984db72bc03a47d53f4745b406c79de86545e80417049536ebcfa

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 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::ToRDF::TopicMap

  describe self do
    before(:each) do
      @tm = get_used_tm_sys_tm
      @tm.from_jtm(File.dirname(__FILE__) + "/../../resources/toyTM.jtm")
    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
          pending "should fail wihtout lucene" do
            lambda{@tm.to_rdf}.should_not raise_error
            @tm.to_rdf.should be_a_kind_of String
          end
        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
          pending "should fail wihtout lucene" do
            @tm.to_rdf_ontopia.should be_a_kind_of String
          end
        end
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtm-0.3.1 spec/rtm/io/to_rdf_spec.rb