Sha256: 23077437660c24833212686654185b276bdd12b7487a6f37e6a9e0c664dbaeed

Contents?: true

Size: 582 Bytes

Versions: 10

Compression:

Stored size: 582 Bytes

Contents

require 'spec_helper'

describe MarkLogic::Forest do

  describe "#init" do
    let(:forest) do
      MarkLogic::Forest.new("marklogic-gem-test")
    end

    it "should create accessors" do
      expect(forest.forest_name).to eq("marklogic-gem-test")
    end
  end

  describe "#create" do
    before do
      @forest = MarkLogic::Forest.new("marklogic-gem-test")
    end

    it "should create a forest" do
      expect(@forest).to_not be_exists
      @forest.create
      expect(@forest).to be_exists

      @forest.drop
      expect(@forest).to_not be_exists
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
marklogic-0.0.11 spec/marklogic/forest_spec.rb
marklogic-0.0.10 spec/marklogic/forest_spec.rb
marklogic-0.0.9 spec/marklogic/forest_spec.rb
marklogic-0.0.8 spec/marklogic/forest_spec.rb
marklogic-0.0.7 spec/marklogic/forest_spec.rb
marklogic-0.0.6 spec/marklogic/forest_spec.rb
marklogic-0.0.5 spec/marklogic/forest_spec.rb
marklogic-0.0.4 spec/marklogic/forest_spec.rb
marklogic-0.0.3 spec/marklogic/forest_spec.rb
marklogic-0.0.1 spec/marklogic/forest_spec.rb