Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
dfcbefff73
Merge pull request #201 from gregory-nisbet/feature-env-shells
...
--env: support more shells, allow explicit shell selection
2016-09-04 21:23:33 +01:00
Dominyk Tiller
4072628a80
test_utils: add Bottles::Bintray tests
2016-08-29 19:48:34 +01:00
Greg Nisbet
9a29a306cf
resolve conflict in diagnostic.rb
2016-08-10 23:19:09 -07:00
Dominyk Tiller
774eefa8ae
test_utils: add with_custom_locale test
2016-08-02 03:50:49 +01:00
Mike McQuaid
7a00f03c92
utils: tell people to report deprecations to tap.
...
This should hopefully avoid Homebrew/brew or Homebrew/homebrew-core
having these exceptions reported to us.
2016-07-31 19:22:12 +01:00
Mike McQuaid
1aded31fec
test_utils: remove unnecessary full paths.
2016-07-29 21:21:02 -06:00
Andrew Janke
f518f57bd8
gist-logs: truncate log files to be gist-friendly ( #279 )
...
Truncates each log file to about 1 MB. This avoids upload and
download errors with the gists, and respects GitHub's suggested
size limits.
2016-07-05 08:45:17 -04:00
Score_Under
b5007c48e0
Tty: Avoid truncating if not sensible
...
This causes truncate to simply return the original string if the
terminal is not very wide, or if the terminal is unsupported.
2016-05-03 15:56:47 +01:00
Martin Afanasjew
8600b9edf1
Update Homebrew/homebrew references in comments
...
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew`
depending on context.
2016-05-02 21:19:09 +02:00
Baptiste Fontaine
daf659cbae
more utils tests
...
Closes Homebrew/homebrew#47856 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09 10:37:29 +01:00
Martin Afanasjew
74baec5e79
test: test popen_read and popen_write with block
2016-01-04 16:26:25 +01:00
Xu Cheng
17a57f529b
test_utils: add test_which_all
2016-01-03 21:00:11 +08:00
Xu Cheng
3d8c334660
test_utils: add test_disk_usage_readable and test_number_readable
2015-12-30 17:05:52 +08:00
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