Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Feb 26, 2018
1 parent e156972 commit 6370bc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions t/dates.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ like(
$release->get_release_date,
qr/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/,
"Returns datetime in UTC as a string in required format"
);
);

{
no warnings 'redefine';
local *DateTime::datetime = sub { '2017-09-02T10:05:49' };
is( $release->get_release_date,
'2017-09-02T10:05:49Z',
"Returns known datetime as a string in required format" );
no warnings 'redefine';
local *DateTime::datetime = sub { '2017-09-02T10:05:49' };
is( $release->get_release_date,
'2017-09-02T10:05:49Z',
"Returns known datetime as a string in required format" );
}
1 change: 1 addition & 0 deletions t/lib/setup_common.pl
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Clean up


0 comments on commit 6370bc6

Please sign in to comment.