Sha256: 6b0f4e5f573926945bd0949b19a44db09b47ad00fe8517ba9bf4000445d12953
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtm-majortom-0.3.1-java | spec/common/store_spec.rb |