test/config_test.rb in vines-0.4.0 vs test/config_test.rb in vines-0.4.1

- old
+ new

@@ -58,12 +58,14 @@ config = Vines::Config.new do host 'wonderland.lit' do storage(:fs) { dir Dir.tmpdir } end end - assert_equal ['wonderland.lit'], config.vhosts.keys + refute_nil config.vhost('wonderland.lit') + refute_nil config.vhost(Vines::JID.new('wonderland.lit')) assert config.vhost?('wonderland.lit') + assert config.vhost?(Vines::JID.new('wonderland.lit')) refute config.vhost?('alice@wonderland.lit') refute config.vhost?('tea.wonderland.lit') refute config.vhost?('bogus') end @@ -392,11 +394,11 @@ host 'verona.lit' do cross_domain_messages true storage(:fs) { dir Dir.tmpdir } end end - refute config.vhosts['wonderland.lit'].cross_domain_messages? - assert config.vhosts['verona.lit'].cross_domain_messages? + refute config.vhost('wonderland.lit').cross_domain_messages? + assert config.vhost('verona.lit').cross_domain_messages? end def test_local_jid? config = Vines::Config.new do host 'wonderland.lit', 'verona.lit' do