Sha256: 4b10fe1c14e5df8ea137a38e1b0216d2063900c91d00c52a7ffea8f262a6a1bf

Contents?: true

Size: 575 Bytes

Versions: 7

Compression:

Stored size: 575 Bytes

Contents

require 'test_helper'

class ConfigTest < ChilloutTestCase

  def setup
    @config = Chillout::Config.new("xyz123")
  end

  def test_api_key_is_set
    assert_equal "xyz123", @config.api_key
  end

  def test_update_with_options_hash
    @config.update(:platform => 'rack')
    assert_equal 'rack', @config.platform
  end

  def test_authentication_user_is_same_as_api_key
    assert_equal @config.api_key, @config.authentication_user
  end

  def test_authentication_password_is_same_as_api_key
    assert_equal @config.api_key, @config.authentication_password
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chillout-0.6.0 test/config_test.rb
chillout-0.5.4 test/config_test.rb
chillout-0.5.3 test/config_test.rb
chillout-0.5.2 test/config_test.rb
chillout-0.5.1 test/config_test.rb
chillout-0.5.0 test/config_test.rb
chillout-0.4.1 test/config_test.rb