Sha256: a9068fccd8af55699332e2333f05fe74837e5902d46023e920c9733ad2dac5ab

Contents?: true

Size: 572 Bytes

Versions: 6

Compression:

Stored size: 572 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

6 entries across 6 versions & 1 rubygems

Version Path
chillout-0.4.0 test/config_test.rb
chillout-0.3.0 test/config_test.rb
chillout-0.2.3 test/config_test.rb
chillout-0.2.2 test/config_test.rb
chillout-0.2.1 test/config_test.rb
chillout-0.2.0 test/config_test.rb