Sha256: 9db44ecbdfaaec55b668952defc3c55bb7427c33a25faa46b8394755c501ba4a

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 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::Association
  describe self do
    before(:all) do
      @tm = get_used_tm_sys_tm
      @assoc = @tm.create_association("assoc_type")
      @assoc.create_role("blub","bla")
      @methods_array = @assoc.methods
    end
    after(:all) do
      @tm.close
    end
    
    describe "#axes" do
      it "should give back a RTM::Axes::Association" do
        @assoc.axes.should be_a_kind_of(RTM::Axes::Association)
        @assoc.axes.construct.should == @assoc
        @assoc.axes.tm.should == @tm
      end
    end
    
    describe "#players" do
      it "should be allowed to call" do
        @methods_array.should include("players")  
      end 
    end

    describe "#reverse_reifier" do
      it "should not be allowed to call" do
        @methods_array.should_not include("reverse_reifier")  
      end 
    end
    

    describe "#roles_tta" do
      it "should not be allowed to call" do
        @methods_array.should_not include("roles_tta")
      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/association_spec.rb
rtm-0.3.0 spec/rtm/navigation/association_spec.rb
rtm-0.2.1 spec/rtm/navigation/association_spec.rb
rtm-0.2.0 spec/rtm/navigation/association_spec.rb
rtm-0.2 spec/rtm/navigation/association_spec.rb