Sha256: d3e2c43fca32c9823f4c591c7c4c77a34c422734cff10b8eb4f697200ed52bd6

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 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::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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtm-majortom-0.3.1-java spec/common/revision_index_spec.rb