def test_alias_path
assert_equal(1, @aliases_call)
assert_equal(1, @driver_call)
assert_equal(1, @params_call)
assert_equal('/fuge', @SetupAlias.alias_path)
@SetupAlias.alias_path = '/foo'
assert_equal('/foo', @SetupAlias.alias_path)
@SetupAlias.write
assert_equal(1, @set_aliases_call)
assert_equal(2, @alias_list.length)
assert_equal({ 'alias_path' => '/bar',
'orig_path' => '/foo',
'virtual_host' => nil
}, @alias_list[0])
assert_equal({ 'alias_path' => '/foo',
'orig_path' => '/hoge',
'virtual_host' => 'www2'
}, @alias_list[1])
assert_equal(1, @driver_call)
assert_equal(1, @redirect_call)
assert_equal('AliasMap', @redirect_last_page_name)
assert_nil(@redirect_last_query_params)
end