Sha256: 225a39ef55be26cdd608953a2d9f0a592803d0f5f0ce1027b61aea9efde6e121

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require 'test_helper'

module Alondra

  class ConfigurationTest < ActiveSupport::TestCase

    test "it has default values" do
      assert_equal 12346, Alondra.config.port
    end

    test "it allows to override default values" do
      assert_equal '0.0.0.0', Alondra.config.host
      Alondra.config.host    = 'www.example.com'
      assert_equal 'www.example.com', Alondra.config.host
    end

    test "it allows to define new variables" do
      Alondra.config.test_variable = 'something'
      assert_equal 'something', Alondra.config.test_variable
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alondra-0.1.1 test/models/configuration_test.rb