# File test/test_params.rb, line 1429 def test_virtual_host assert_equal(nil, @entry.virtual_host) @entry.virtual_host = 'www.foo.net' assert_equal('www.foo.net', @attrs['virtual_host']) assert_equal('www.foo.net', @entry.virtual_host) @entry.virtual_host = nil # allowed assert_exception(RuntimeError) { @entry.virtual_host = 0 # not allowed } end