Sha256: 1ed9ff95b2626c1c63f6b063f5ab65b33e85383ea9c602b8e64a4e17934abaad

Contents?: true

Size: 796 Bytes

Versions: 9

Compression:

Stored size: 796 Bytes

Contents

require 'spec_helper'

describe MarkLogic::AppServer do

  describe "instance" do
    let(:s) do
      MarkLogic::AppServer.new(
        "marklogic-gem-test",
        8039,
        "http",
        "Default")
    end

    it "should create accessors" do
      expect(s.server_name).to eq("marklogic-gem-test")
      expect(s.server_type).to eq("http")
      expect(s["content-database"]).to eq("marklogic-gem-test-content")
    end

  end

  describe "load" do
    it "should load an existing config from the server" do
      app = MarkLogic::AppServer.load('App-Services')
      expect(app['server-name']).to eq('App-Services')
      expect(app['content-database']).to eq('Documents')
      expect(app['modules-database']).to eq('Modules')
      expect(app['port']).to eq(8000)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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