Sha256: acc4285974e8ce199284c720f668f4dd08b3cc223fc6a0a2991bb4c57271e62b

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 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::Name
  describe self do
    before(:all) do
      @tm = get_used_tm_sys_tm
      @topic = @tm.get!("person")
      @name = @topic.create_name("Hans")
      @methods_array = @name.methods
    end
    after(:all) do
      @tm.close
    end
    
    describe "#axes" do
      it "should give back a RTM::Axes::Name" do
        @name.axes.should be_a_kind_of RTM::Axes::Name
        @name.axes.should be_a_kind_of RTM::Axes::Characteristic
        @name.axes.construct.should == @name
        @name.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

Version Path
rtm-0.3.1 spec/rtm/navigation/name_spec.rb
rtm-0.3.0 spec/rtm/navigation/name_spec.rb
rtm-0.2.1 spec/rtm/navigation/name_spec.rb
rtm-0.2.0 spec/rtm/navigation/name_spec.rb
rtm-0.2 spec/rtm/navigation/name_spec.rb