Sha256: f12bde19aa0e0650b0a9d2eefa2feb2b71fb6d6caef8d03504eb47dbcf655137
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 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::Topic::Remove describe self do before(:each) do @tm = get_used_tm_sys_tm @tm.from_jtm(File.dirname(__FILE__) + "/../../../resources/toyTM.jtm") end after(:each) do @tm.close end describe "#force_remove" do it "should remove the topic if it playes in an association" do topic = @tm.get("http://en.wikipedia.org/wiki/Germany") topic.should_not be_nil topic.force_remove end it "should remove the topic if it is an association type" do pending "not implemented yet" do topic = @tm.get("http://en.wikipedia.org/wiki/Neighbouring_Countries") topic.should_not be_nil topic.force_remove end end it "should remove a topic that has a name with a reifier" do topic = @tm.get("http://en.wikipedia.org/wiki/Vienna") topic.should_not be_nil topic.force_remove end it "should remove a topic that has a variant with a reifier" do topic = @tm.get("http://dbpedia.org/resource/Switzerland") topic.should_not be_nil topic.force_remove end it "should remove a topic that has an occurrence with a reifier" do topic = @tm.get("http://dbpedia.org/resource/Belgium") topic.should_not be_nil topic.force_remove end end end end #of describe self
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.1 | spec/rtm/sugar/topic/remove_spec.rb |