Sha256: 879ce1471e8a0cf75831d8b739e70242d4bc3d718909ab8ac7b9320c710c1d6a
Contents?: true
Size: 704 Bytes
Versions: 2
Compression:
Stored size: 704 Bytes
Contents
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../../../spec_helper' module RTM::Sugar::Variant::Topic describe self do before(:each) do @tm = get_used_tm_sys_tm end after(:each) do @tm.close end describe "#topic" do it "should return the topic the variant belongs to" do topic = @tm.get!("Leipzig") name = topic.create_name("Leipzig") variant = name.create_variant("LE", ["short name"]) topic.create_name("Leipzig in Germany") @tm.get!("Berlin") ### variant.topic.should == topic end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.1 | spec/rtm/sugar/variant/topic_spec.rb |
rtm-0.3.0 | spec/rtm/sugar/variant/topic_spec.rb |