Merge branch 'ticket/next/5274' into next

This commit is contained in:
Paul Berry 2010-11-18 14:24:08 -08:00
Родитель 669741d11f 6e51d11c53
Коммит 263cc46ce0
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -67,7 +67,8 @@ class TestParsedHostProvider < Test::Unit::TestCase
# Make sure we convert both directlys correctly using a simple host.
def test_basic_isomorphism
hash = {:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host}}
hash = {:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host},
:comment => ''}
str = nil
assert_nothing_raised do
@ -105,11 +106,13 @@ class TestParsedHostProvider < Test::Unit::TestCase
[
{:record_type => :comment, :line => "# comment one"},
{:record_type => :blank, :line => ""},
{:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host}},
{:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host},
:comment => ''},
{:record_type => :blank, :line => " "},
{:record_type => :comment, :line => "# another comment"},
{:record_type => :parsed, :name => "anotherhost", :ip => "192.168.43.57", :host_aliases => []}
{:record_type => :parsed, :name => "anotherhost", :ip => "192.168.43.57", :host_aliases => [],
:comment => ''}
], instances)
newtext = nil