tests: slightly stricter match in tab test

Suggested by @reitermarkus in
https://github.com/Homebrew/brew/pull/1890#discussion_r97234536, and
then I added the \A and \Z.
This commit is contained in:
Markus Reiter 2017-01-23 12:01:47 +00:00 committed by Alyssa Ross
parent 19e61355b3
commit 7d131de57d

View File

@ -177,7 +177,7 @@ class TapTest < Homebrew::TestCase
assert_equal "0453e16c8e3fac73104da50927a86221ca0740c2", @tap.git_head
assert_equal "0453", @tap.git_short_head
assert_match "ago", @tap.git_last_commit
assert_match(/\A\d+ .+ ago\Z/, @tap.git_last_commit)
assert_equal "2017-01-22", @tap.git_last_commit_date
end