Sha256: 365369a02f419ab10f86857d3808c4b7b53ba603418397920439f0f7d7a80b76

Contents?: true

Size: 577 Bytes

Versions: 3

Compression:

Stored size: 577 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 'localhost', 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

3 entries across 3 versions & 1 rubygems

Version Path
alondra-0.1.0 test/models/configuration_test.rb
alondra-0.0.4 test/models/configuration_test.rb
alondra-0.0.3 test/models/configuration_test.rb