Sha256: acbbc058362b29092d465313836b5bd7e991af2da66364866b86923d0ae922ab
Contents?: true
Size: 1.65 KB
Versions: 5
Compression:
Stored size: 1.65 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::Axes module Associations describe self do before(:all) do @tm = get_used_tm_sys_tm @assoc1 = @tm.create_association("assoc_type_1") @assoc2 = @tm.create_association("assoc_type_2") @proxy = [@assoc1.axes,@assoc2.axes].extend(Associations) end after(:all) do @tm.close end it "should be allowed to call #tmapi and #result on an Associations-Array" do @proxy.methods.should include("tmapi") @proxy.methods.should include("result") end it "should be allowed to call #players on an Associations-Array" do @proxy.methods.should include("players") end it "should be allowed to call #reverse_reifier on an Associations-Array" do @proxy.methods.should include("reverse_reifier") end it "should be allowed to call #roles on an Associations-Array" do @proxy.methods.should include("roles") end it "should be allowed to call #scope on an Associations-Array" do @proxy.methods.should include("scope") end it "should be allowed to call #reverse_traverse on an Associations-Array" do pending "should not" do @proxy.methods.should include("reverse_traverse") end end describe "#players" do end describe "#reverse_reifier" do end describe "#roles" do end describe "#scope" do end end end end
Version data entries
5 entries across 5 versions & 1 rubygems