19 Commits

Author SHA1 Message Date
Sebastian Staudt
f0a370ea12 Reimplement #pretty_duration
Also reuse this improved implementation in the GitHub rate limit errors.

Closes Homebrew/homebrew#44721.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-22 12:46:03 +01:00
Baptiste Fontaine
f1ac9b5776 pretty_duration: fixed for int arguments
Without this the returned string is not as accurate if the method is
called with an int larger than 120.

Closes Homebrew/homebrew#47002.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-14 16:34:12 +01:00
Baptiste Fontaine
9127ee1928 plural: tests added 2015-12-14 15:01:31 +01:00
Xu Cheng
a88c40b8c8 core file style update 2015-08-22 13:15:33 +08:00
Baptiste Fontaine
ccb613df69 which: tests added
Closes Homebrew/homebrew#42954.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-16 17:03:05 +02:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Jack Nagel
7e20b353a2 Utils.popen_read doesn't doesn't require a block 2014-12-16 15:27:36 -05:00
Jack Nagel
ad27b21cd1 Add popen wrapper that does not invoke the shell 2014-07-05 13:50:54 -05:00
Jack Nagel
66ffc46aba Use assert_silent 2014-06-18 20:34:10 -05:00
Jack Nagel
982e9239b8 Use a custom test class so we can avoid monkeypatching 2014-06-18 20:32:51 -05:00
Jack Nagel
434854cc69 Don't use assert_nothing_raised 2014-04-15 15:39:26 -05:00
Jack Nagel
46a11a2b26 Remove questionable test
This is already covered in test_mach.rb.
2014-04-15 15:39:10 -05:00
Mike McQuaid
3716dae0ce test_utils: fix Mavericks arch test. 2013-10-23 22:15:28 +01:00
Adam Vandenberg
f4f54b79b7 Skip test on Xcode only systems 2013-06-26 09:45:32 -07:00
Jack Nagel
90dbb8a141 Prune some requires from test files
testing_env already requires utils; set up the ARGV and ENV extensions
there as well.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04 22:47:34 -05:00
Jack Nagel
53ce9dba53 archs_for_command: use new Mach-O Pathname methods
- Reimplement archs_for_command on top of the new Mach-O methods
 - Move ArchitectureListExtension to mach.rb
 - Add a test for the ArchitectureListExtension

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30 22:32:48 -05:00
Jack Nagel
fe25e4f7ec Fix typo in test_arch_for_command
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09 11:50:27 -06:00
Mike McQuaid
31e2ec485b Fix test_arch_for_command on 10.7. 2012-03-09 16:49:19 +13:00
Adam Vandenberg
551d42c6a9 Move utils tests to separate file. 2010-04-06 08:27:11 -07:00