diff options
| author | Markus Reiter | 2017-01-23 12:01:47 +0000 |
|---|---|---|
| committer | Alyssa Ross | 2017-01-23 12:31:02 +0000 |
| commit | 7d131de57dac25dbb7cf9a8f986c291de87f7e65 (patch) | |
| tree | d4c5470271febeb7ebe4d6af0092be129e8f77cd /Library | |
| parent | 19e61355b38b8ba96db0ca71849bb536af0490bf (diff) | |
| download | brew-7d131de57dac25dbb7cf9a8f986c291de87f7e65.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/tap_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/tap_test.rb b/Library/Homebrew/test/tap_test.rb index 9979be43d..578326cea 100644 --- a/Library/Homebrew/test/tap_test.rb +++ b/Library/Homebrew/test/tap_test.rb @@ -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 |
