Sha256: 060df63e992eddb147b1af06e5fb26d710528934c3cf66dca46229e47a0b71f5
Contents?: true
Size: 1.45 KB
Versions: 4
Compression:
Stored size: 1.45 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 = RTM.connect(:implementation => implementation_for_spec) 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 = RTM.connect(:implementation => implementation_for_spec) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.0 | spec/rtm/tmapi_spec.rb |
rtm-0.2.1 | spec/rtm/tmapi_spec.rb |
rtm-0.2.0 | spec/rtm/tmapi_spec.rb |
rtm-0.2 | spec/rtm/tmapi_spec.rb |