aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_utils.rb
AgeCommit message (Collapse)Author
2016-10-15Convert `puts_columns` to `puts Formatter.columns`.Markus Reiter
2016-10-15Change test for `puts_columns` with empty input.Markus Reiter
2016-10-08Rename FormulaMethodDeprecatedError to MethodDeprecatedError.Markus Reiter
2016-10-04Merge pull request #1145 from reitermarkus/module-functionMarkus Reiter
Use `module_function` for `Homebrew` module.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-10-01Refactor Tty.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-04Merge pull request #201 from gregory-nisbet/feature-env-shellsMike McQuaid
--env: support more shells, allow explicit shell selection
2016-08-29test_utils: add Bottles::Bintray testsDominyk Tiller
2016-08-10resolve conflict in diagnostic.rbGreg Nisbet
2016-08-02test_utils: add with_custom_locale testDominyk Tiller
2016-07-31utils: tell people to report deprecations to tap.Mike McQuaid
This should hopefully avoid Homebrew/brew or Homebrew/homebrew-core having these exceptions reported to us.
2016-07-29test_utils: remove unnecessary full paths.Mike McQuaid
2016-07-05gist-logs: truncate log files to be gist-friendly (#279)Andrew Janke
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-05-03Tty: Avoid truncating if not sensibleScore_Under
This causes truncate to simply return the original string if the terminal is not very wide, or if the terminal is unsupported.
2016-05-02Update Homebrew/homebrew references in commentsMartin Afanasjew
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
2016-01-09more utils testsBaptiste Fontaine
Closes Homebrew/homebrew#47856. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04test: test popen_read and popen_write with blockMartin Afanasjew
2016-01-03test_utils: add test_which_allXu Cheng
2015-12-30test_utils: add test_disk_usage_readable and test_number_readableXu Cheng
2015-12-22Reimplement #pretty_durationSebastian Staudt
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-14pretty_duration: fixed for int argumentsBaptiste Fontaine
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-14plural: tests addedBaptiste Fontaine
2015-08-22core file style updateXu Cheng
2015-08-16which: tests addedBaptiste Fontaine
Closes Homebrew/homebrew#42954. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-16Utils.popen_read doesn't doesn't require a blockJack Nagel
2014-07-05Add popen wrapper that does not invoke the shellJack Nagel
2014-06-18Use assert_silentJack Nagel
2014-06-18Use a custom test class so we can avoid monkeypatchingJack Nagel
2014-04-15Don't use assert_nothing_raisedJack Nagel
2014-04-15Remove questionable testJack Nagel
This is already covered in test_mach.rb.
2013-10-23test_utils: fix Mavericks arch test.Mike McQuaid
2013-06-26Skip test on Xcode only systemsAdam Vandenberg
2012-07-04Prune some requires from test filesJack Nagel
testing_env already requires utils; set up the ARGV and ENV extensions there as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30archs_for_command: use new Mach-O Pathname methodsJack Nagel
- 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-03-09Fix typo in test_arch_for_commandJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09Fix test_arch_for_command on 10.7.Mike McQuaid
2010-04-06Move utils tests to separate file.Adam Vandenberg