Skip to content

Commit 60fef98

Browse files
committed
Fix warning about spurt
Mojo::File::spurt is deprecated in favor of Mojo::File::spew at t/pause_2017/action/add_uri.t line 37.
1 parent 3b63c16 commit 60fef98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/pause_2017/action/add_uri.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ subtest 'get: user with subdirs' => sub {
3434
my $user_home = $PAUSE::Config->{MLROOT}."/".PAUSE::user2dir($user);
3535
my $subdir = path("$user_home/test");
3636
$subdir->make_path;
37-
$subdir->child("stuff.txt")->spurt("Foo");
37+
$subdir->child("stuff.txt")->spew("Foo");
3838

3939
my $t = Test::PAUSE::Web->new(user => $user);
4040
$t->get_ok("$path?ACTION=add_uri");
@@ -103,7 +103,7 @@ subtest 'post: under a Perl6 subdir' => sub {
103103
my $user_home = $PAUSE::Config->{MLROOT}."/".PAUSE::user2dir($user);
104104
my $subdir = path("$user_home/Perl6");
105105
$subdir->make_path;
106-
$subdir->child("stuff.txt")->spurt("Foo");
106+
$subdir->child("stuff.txt")->spew("Foo");
107107

108108
my $file = $PAUSE::Config->{INCOMING_LOC}."/".$form{pause99_add_uri_httpupload}[1];
109109
ok !-f $file, "file to upload does not exist";

0 commit comments

Comments
 (0)