22 Commits

Author SHA1 Message Date
Martin Afanasjew
8091b33f85 ruby 1.8: address syntax warnings in Homebrew core
Closes Homebrew/homebrew#45849.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-11 14:22:44 +08: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
e398e4519d Add test demonstrating installing a relative symlink 2015-05-21 20:43:38 -04:00
Jack Nagel
dc6af1a6ae Ensure HOMEBREW_TEMP is respected in all tests 2015-04-29 19:15:11 -04:00
Jack Nagel
522f7ea8c7 Add tests for cp_path_sub 2015-03-26 22:02:15 -04:00
Jack Nagel
8a8de3a296 Add test for InstallRenamed on directories 2015-03-26 22:02:15 -04:00
Jack Nagel
4c21ad30d8 Adjust variable in InstallRenamed test 2015-03-26 22:02:14 -04:00
Jack Nagel
23d9173cb1 Don't run pathname tests twice 2015-03-26 22:02:14 -04:00
Jack Nagel
038332d8d7 Get rid of setup_install_test method 2015-03-25 21:37:26 -04:00
Jack Nagel
148ebcb72e Eliminate chdir from pathname tests 2015-03-25 21:37:26 -04:00
Jack Nagel
b49d3bd0a9 Pull install tests into a separate class 2015-03-25 21:37:26 -04:00
Jack Nagel
53b7d45de8 Do less work inside chdir blocks 2015-03-25 21:11:51 -04:00
Jack Nagel
3b7c5af431 Add test for InstallRenamed module 2014-07-11 19:01:55 -05:00
Jack Nagel
c259866517 Raise Errno::ENOENT instead of RuntimeError from Pathname#install 2014-07-10 22:00:43 -05:00
Jack Nagel
58a75b0f71 Use assert_predicate 2014-06-18 20:34:09 -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
96195295a3 Deprecate Pathname#cp and Pathname#chmod_R
As far as I can tell these methods have only ever been used in the test
suite.

Since Formula includes FileUtils, it is generally simpler (and in the
case of cp, more readable) to use the FileUtils methods directly.

Closes Homebrew/homebrew#30081.
2014-06-12 09:00:58 -05:00
Jack Nagel
26fe9df9b2 Preserve permissions when using Pathname#atomic_write 2014-03-22 10:58:28 -05:00
Jack Nagel
aa7ed10968 Make relative symlinks in Pathname#install_symlink
Closes Homebrew/homebrew#27672.
2014-03-18 19:03:25 -05:00
Adam Vandenberg
7c1671667f pathname: remove unused return values
Return value was used only by one test, rewrote test to know expected value.
2013-08-13 20:41:08 -07:00
Jack Nagel
6090b9b2bf Silence warnings 2013-07-22 11:41:47 -05:00
Jack Nagel
d526d2b257 More comprehensive tests for Pathname extension 2013-04-10 20:05:43 -05:00