use strict;
use warnings;
-use Test::More tests => 49;
+use Test::More tests => 55;
use Data::Dump qw(dump);
use lib 'lib';
my $files = gearman list_files => "~$u2";
like $files, qr|dir with space/file with space|, 'found sent file in list_files';
+gearman send_file => "~$u2/dir with space/file with space#~$u3/another dir with spaces/and file with spaces";
+test_refresh_file_list "$u3";
+
gearman delete => "~$u2/dir with space/file with space";
test_refresh_file_list "$u2";
+gearman delete => "~$u3/another dir with spaces/and file with spaces";
+test_refresh_file_list "$u3";
+
gearman send_file => "~$u1/foo.txt#~$u2/foo.txt";
test_refresh_file_list "$u2";