Sha256: b28543e287fe9d3beb6b6708189fd1cb6a8c02e20cc998fd0930b785a9ec8231
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 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::Sugar::TopicMap module Remove describe self do before(:each) do @tm = get_used_tm_sys_tm @tm.from_xtm(File.dirname(__FILE__) + "/../../../resources/toyTM.xtm") end after(:each) do @tm.close end it "should respond to clear" do @tm.should respond_to(:clear) end describe "#clear" do before(:each) do @tm.variants.should_not be_empty @tm.names.should_not be_empty @tm.occurrences.should_not be_empty @tm.roles.should_not be_empty @tm.associations.should_not be_empty @tm.topics.should_not be_empty @tm.clear end it "should remove all variants" do @tm.variants.should be_empty end it "should remove all names" do @tm.names.should be_empty end it "should remove all occurrences" do @tm.occurrences.should be_empty end it "should remove all roles" do @tm.roles.should be_empty end it "should remove all associations" do @tm.associations.should be_empty end it "should remove all topics" do @tm.topics.should be_empty end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.1 | spec/rtm/sugar/topic_map/remove_spec.rb |