Sha256: 606bd38f414a829d233476f8d5b4ef6e01bc9a403b40cac89b9ecbf0791f2d0a
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 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::Navigation::Occurrence describe "characteristics" do before(:each) do @tm = get_used_tm_sys_tm @topic = @tm.get!("Person") end after(:each) do @tm.close end describe "#reverse_characteristics" do before(:each) do @type = @tm.get!("something") @occ = @topic.create_occurrence("Number","18") end it "should give back the topic the Occurrence belongs to" do @occ.reverse_characteristics.should == @topic end it "should give back the topic the Occurrence belongs to with the right occ type" do @occ.reverse_characteristics("Number").should == @topic @occ.reverse_characteristics("something").should be_nil @occ.reverse_characteristics("anything").should be_nil end end end #of describe "characteristics" end #of module
Version data entries
5 entries across 5 versions & 1 rubygems