# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../spec_helper' module Java::DeTopicmapslabMajortomModelStore::ITopicMapStore describe self do before(:each) do @tm = get_used_tm_sys_tm @tm.should be_a_kind_of RTM::TopicMap @store = @tm.store @store.should_not be_nil end after(:each) do if implementation_for_spec == :majortom_db @tm.remove else @tm.close end end describe "#is_revision_management_enabled" do it "should give back true after initializing a topic map" do @store.is_revision_management_enabled.should be_true end end describe "#enable_revision_management" do it "should enable and disable the revision management" do @store.is_revision_management_enabled.should be_true @store.enable_revision_management(true) @store.is_revision_management_enabled.should be_true @store.enable_revision_management(false) @store.is_revision_management_enabled.should_not be_true @store.enable_revision_management(true) @store.is_revision_management_enabled.should be_true end end end # of describe self end