Sha256: b5eb2990ceeda1da8eb5f2f5a711435f15b389a570312bb9c9984d6be61bec56
Contents?: true
Size: 940 Bytes
Versions: 5
Compression:
Stored size: 940 Bytes
Contents
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../spec_helper' describe "RTM" do describe "#create" do it "should give back an instance of RTM::TopicMap" do # RTM.connect # @tm = RTM.create("test:test") # @tm.should be_a_kind_of RTM::TopicMap # @tm.close end end describe "#[]" do it "should allow to see the existing TM's and 2 access them" do # RTM.connect # RTM[].should be_empty # @tm = RTM.create("test:test") # @tm_2 = RTM.create("test:test_2") # RTM["test:test_2"].include?(@tm_2).should be_true # RTM["test:test_2"].length.should == 1 # RTM["test:test","test:test_2"].length.should == 2 # RTM[].length.should == 2 # @tm.close # @tm_2.close end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.1 | spec/rtm/base_spec.rb |
rtm-0.3.0 | spec/rtm/base_spec.rb |
rtm-0.2.1 | spec/rtm/base_spec.rb |
rtm-0.2.0 | spec/rtm/base_spec.rb |
rtm-0.2 | spec/rtm/base_spec.rb |