Sha256: 1bab00093d2204274db510358f46460f75a845fe1fe1e87a24971937098a05c4
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 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 class TMAPI describe self do describe "#create" do before(:all) do @connection = get_used_tm_sys end it "should create a topic map given a base locator (String)" do tm = @connection.create("a:b") tm.should be_a_kind_of RTM::TopicMap end it "should create a topic map given a base locator (Locator)" do loc = @connection.create_locator("a:b") tm = @connection.create(loc) tm.should be_a_kind_of RTM::TopicMap end it "should be allowed to call create_topic_map also" do @connection.method(:create).should == @connection.method(:create_topic_map) end it "should be allowed to call createTopicMap also" do @connection.method(:create).should == @connection.method(:createTopicMap) end end describe "#create_locator" do before(:all) do @connection = get_used_tm_sys end it "should create a locator given a String reference" do locator = @connection.create_locator("a:b") locator.should be_a_kind_of RTM::Locator locator.reference.should == "a:b" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.1 | spec/rtm/tmapi_spec.rb |