Sha256: 8fefdfb61669a720c408ef3c460d64300f322d730119e723f41e01d4fff3d0fb
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 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 it "should respond to remove_everything" 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.0 | spec/rtm/sugar/topic_map/remove_spec.rb |