summaryrefslogtreecommitdiff
path: root/t/rsync.t
blob: 9621730e7674391ea8e8ba12fce3c5ce997a2653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;

use Test::More tests => 4;

use URI ();

my $u = URI->new('rsync://gisle@example.com/foo/bar');

is($u->user, "gisle");

is($u->port, 873);

is($u->path, "/foo/bar");

$u->port(8730);

is($u, 'rsync://gisle@example.com:8730/foo/bar');