# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../spec_helper' module Java::DeTopicmapslabMajortomModelIndex::IRevisionIndex describe self do before(:each) do @tm = get_used_tm_sys_tm @tm.should be_a_kind_of RTM::TopicMap end after(:each) do if implementation_for_spec == :majortom_db @tm.remove else @tm.close end end describe "#first_revision" do it "should be callable on an index" do index = @tm.revision_index index.should_not be_nil index.should respond_to(:first_revision) end end describe "future" do it "should be callable on the first revision" do index = @tm.revision_index index.should_not be_nil first_revision = index.first_revision first_revision.should be_nil @tm.create_topic first_revision = index.first_revision first_revision.should_not be_nil end end end # of describe self end