Sha256: d1b1f1c6e56daadff95f0c8c9e8efcae6f52e63c1a108cb1ac0eb4afffcb459e
Contents?: true
Size: 1.81 KB
Versions: 1
Compression:
Stored size: 1.81 KB
Contents
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../../../spec_helper' module Sugar module Topic module TopicRef describe self do before(:each) do @tm = get_used_tm_sys_tm @topic = @tm.get!("ii:uni_leipzig") end after(:each) do @tm.close end describe "#topic_references" do it "should not give back an empty Array" do @topic.topic_references.should_not be_empty end it "should give back an item identifier that starts with a ^" do pending if implementation_for_spec == :ontopia @topic.topic_references.first[0].should == ?^ @topic.topic_references.should include("^http://www.topicmapslab.de/uni_leipzig") end it "should give back subject locators also" do pending if implementation_for_spec == :ontopia @topic.addSubjectLocator(@tm.create_locator("uni_leipzig")) @topic.topic_references.size.should == 2 @topic.topic_references.should include("^http://www.topicmapslab.de/uni_leipzig") @topic.topic_references.should include("=http://www.topicmapslab.de/uni_leipzig") end it "should give back subject identifiers also" do pending if implementation_for_spec == :ontopia @topic.add_subject_identifier(@tm.create_locator("uni_leipzig")) @topic.topic_references.size.should == 2 @topic.topic_references.should include("^http://www.topicmapslab.de/uni_leipzig") @topic.topic_references.should include("http://www.topicmapslab.de/uni_leipzig") end end #of describe "#identifiers" end #of describe self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.2.0 | spec/rtm/sugar/topic/topic_ref_spec.rb |