Sha256: adb910a13e1fad2fbf915072afe43fc478895f226a548500b4a1b935bb0a5a19
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
require_relative '../helper' class TestSkeinConfig < Test::Unit::TestCase def test_env assert_equal('test', Skein::Config.env) end def test_default_state config = Skein::Config.new(false) assert config assert_equal('127.0.0.1', config.host) assert_equal(5672, config.port) assert_equal('guest', config.username) assert_equal('guest', config.password) assert_equal(nil, config.namespace) end def test_with_config_path config = Skein::Config.new(data_path('sample_config.yml')) assert_equal('test.host', config.host) assert_equal(5670, config.port) assert_equal('test_user', config.username) assert_equal('test_password', config.password) assert_equal('test', config.namespace) end def test_config_exists assert_equal(true, Skein::Config.exist?) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skein-0.3.1 | test/unit/test_skein_config.rb |
skein-0.3.0 | test/unit/test_skein_config.rb |