Sha256: 7e0218193f75f151413cbc72fc20fe5efb0681a23da9711143cc804b1ad7e7e4

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

# -*- encoding : utf-8 -*-

require File.expand_path('../test_helper', __FILE__)

describe Gitdocs::Configuration do
  before do
    ShellTools.capture { Gitdocs::Initializer.initialize_database }
  end

  describe 'Config.update' do
    before do
      Gitdocs::Configuration.update(
        'start_web_frontend' => false, 'web_frontend_port' => 9999
      )
    end

    it { Gitdocs::Configuration.start_web_frontend.must_equal(false) }
    it { Gitdocs::Configuration.web_frontend_port.must_equal(9999) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitdocs-0.6.2 test/unit/configuration_test.rb
gitdocs-0.6.1 test/unit/configuration_test.rb
gitdocs-0.6.0 test/unit/configuration_test.rb