Sha256: 0bd13d8a759a0a356d5215c4fe8724f81470b85bd2ec6d1619218c531c6dd5a1
Contents?: true
Size: 1.34 KB
Versions: 5
Compression:
Stored size: 1.34 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 self do before(:all) do @tm = get_used_tm_sys_tm @topic = @tm.get!("person") @occ = @topic.create_occurrence("Alter", "18") @methods_array = @occ.methods end after(:all) do @tm.close end describe "#axes" do it "should give back a RTM::Axes::Occurrence" do @occ.axes.should be_a_kind_of RTM::Axes::Occurrence @occ.axes.should be_a_kind_of RTM::Axes::Characteristic @occ.axes.construct.should == @occ @occ.axes.tm.should == @tm end end describe "#atomify" do it "should be allowed to call" do @methods_array.should include("atomify") end end describe "#reverse_characteristics" do it "should be allowed to call" do @methods_array.should include("reverse_characteristics") end end describe "#reverse_reifier" do it "should not be allowed to call" do @methods_array.should_not include("reverse_reifier") end end describe "#scope" do it "should be allowed to call" do @methods_array.should include("scope") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems