test/unit/test_host.rb in sshkit-0.0.4 vs test/unit/test_host.rb in sshkit-0.0.5

- old
+ new

@@ -58,8 +58,15 @@ assert Host.new('example.com') == Host.new('example.com') assert Host.new('example.com').eql? Host.new('example.com') assert Host.new('example.com').equal? Host.new('example.com') end + def test_arbitrary_host_properties + h = Host.new('example.com') + assert_equal nil, h.properties.roles + assert h.properties.roles = [:web, :app] + assert_equal [:web, :app], h.properties.roles + end + end end