Permalink
Browse files

Be laxer on useragent test

  • Loading branch information...
1 parent 7f603a4 commit 9ec8fe4d64a527255dbee6927f152ca63b43d2f2 Mike.lifeguard committed Aug 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 t/00-init.t
View
@@ -58,7 +58,7 @@ subtest 'diag-one' => sub {
is($test_one->{assert}, $assert, 'Specified assert set orrectly');
is($test_one->{operator}, $operator, 'Specified operator set correctly');
is($test_one->{api}->{config}->{api_url}, "http://$host/api.php", 'api.php with null path is OK'); # Issue 111: Null $path value returns "w"
- like($bot->{api}->{ua}->agent(), qr{^MediaWiki::Bot/(v?\d\.\d\.\d(_\d)?|dev)$}, 'Useragent built correctly');
+ like($bot->{api}->{ua}->agent(), qr{^MediaWiki::Bot/(v?[[:digit:]._]+|dev)$}, 'Useragent built correctly');
};
subtest 'diag-two' => sub {

0 comments on commit 9ec8fe4

Please sign in to comment.