Skip to content

Commit

Permalink
Test missing branch_name_pattern in config.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeaubert committed Jul 25, 2016
1 parent 1b61251 commit bd86710
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/10-run_pre_push.t
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ my $tests =
exit_status => 1,
},

# Test missing branch_name_pattern.
{
name => 'branch_name_pattern is not defined in the config.',
create_branch => 'DEV-123_test_feature',
config => "[ForceBranchNamePattern]\n",
expected => qr/\Q[new branch]\E\s+\QDEV-123_test_feature -> DEV-123_test_feature\E/,
exit_status => 0,
},
];

plan( tests => scalar( @$tests ) );
Expand Down

0 comments on commit bd86710

Please sign in to comment.