700 Commits

Author SHA1 Message Date
Jack Nagel
07171f5527 Test that the tab round-trips through JSON 2014-06-29 22:18:44 -05:00
Jack Nagel
cd91709120 Fix typo in tab test setup
This is one of the many problems with using OpenStruct.
2014-06-29 22:18:44 -05:00
Jack Nagel
391bc4c981 Normalize paths before calling Tab.from_file 2014-06-29 21:50:08 -05:00
Jack Nagel
4d11def53c Add tests documenting install receipt loading behavior 2014-06-29 21:49:34 -05:00
Jack Nagel
34db1bd1ef Remove test that is now covered by tab tests 2014-06-29 19:27:28 -05:00
Jack Nagel
e2e5839a9a Get the Tab class under test 2014-06-29 00:55:56 -05:00
Jack Nagel
fde884e319 Use TEST_SHA1 constant in checksum tests 2014-06-28 23:46:23 -05:00
Jack Nagel
7cd31377a4 Convert update report to use composition 2014-06-27 21:58:15 -05:00
Jack Nagel
acf76f3f55 Add module for logging filesystem leaks in tests 2014-06-23 23:28:25 -05:00
Jack Nagel
5ab65d0b25 Make the test tmpdir a constant 2014-06-23 23:24:45 -05:00
Jack Nagel
de24d73172 Use Keg#uninstall to uninstall kegs 2014-06-23 22:34:41 -05:00
Jack Nagel
f222ca04fd Remove pin directory when empty 2014-06-23 22:34:41 -05:00
Jack Nagel
35b9a00706 Fix file leak in lock tests 2014-06-23 22:34:05 -05:00
Jack Nagel
f25f6fbb39 Fix directory leaks in formula prefix tests 2014-06-23 22:11:40 -05:00
Jack Nagel
88165986e8 Clear cache after patching tests 2014-06-23 22:11:39 -05:00
Jack Nagel
63d3a17f2b Fix test class name collision 2014-06-23 22:11:39 -05:00
Jack Nagel
9a6d2a31d9 Fix directory leak in test_cleanup 2014-06-23 22:11:39 -05:00
Jack Nagel
c2337771f7 Clear cache after checksum verification tests 2014-06-23 22:11:39 -05:00
Jack Nagel
98e01d2b83 Fix directory leak in test_argv 2014-06-23 22:11:39 -05:00
Jack Nagel
4d14cafaa5 Fix directory leak in test_cleaner 2014-06-23 22:11:39 -05:00
Jack Nagel
45840f43a2 Clear cache after formula install tests 2014-06-23 22:11:39 -05:00
Jack Nagel
9f03b28573 Fix directory leak in test_pathname_version 2014-06-23 22:11:39 -05:00
Jack Nagel
f9fd3f46d4 Explicitly create top-level directories for tests 2014-06-23 22:11:39 -05:00
Jack Nagel
04f504546c Give the temporary test directory a prefix 2014-06-23 18:58:58 -05:00
Jack Nagel
3dbcba0c03 Call original backtick using super 2014-06-23 18:50:55 -05:00
Jack Nagel
43cb0b9141 Use Dir.mktmpdir to create temp directory for tests 2014-06-23 18:42:27 -05:00
Jack Nagel
8d12684efe Pass repository path into the updater 2014-06-23 18:41:50 -05:00
Jack Nagel
4d9d01893e Move deprecated Formula class methods to compat
These have all been moved to Formulary.
2014-06-22 15:03:17 -05:00
Jack Nagel
445dd80e44 Remove ARGV.filter_for_dependencies 2014-06-20 21:32:36 -05:00
Jack Nagel
10fda9e9b9 Decouple spec selection from ARGV 2014-06-20 21:32:36 -05:00
Jack Nagel
5beaa512e6 Pass the requested spec into the formula instance 2014-06-20 21:32:36 -05:00
Jack Nagel
10a1952d2c Only "extend self" once on the Homebrew module 2014-06-19 13:10:36 -05:00
Jack Nagel
ea203c2aac Combine Homebrew module declarations in testing_env 2014-06-18 21:08:09 -05:00
Jack Nagel
480e3ec855 Make sure compatible gem versions are installed 2014-06-18 20:34:10 -05:00
Jack Nagel
66ffc46aba Use assert_silent 2014-06-18 20:34:10 -05:00
Jack Nagel
4b6abc7da2 Use assert_includes 2014-06-18 20:34:10 -05:00
Jack Nagel
58a75b0f71 Use assert_predicate 2014-06-18 20:34:09 -05:00
Jack Nagel
06305e6211 Switch to Minitest 2014-06-18 20:34:09 -05:00
Jack Nagel
89d74ec475 Move test helpers into Homebrew::TestCase 2014-06-18 20:32:51 -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
344f77e179 Don't load unused compat files for tests 2014-06-16 14:32:24 -05:00
Jack Nagel
4b07dbbf78 Only define intel family test on intel CPU 2014-06-13 16:32:26 -05:00
Jack Nagel
1b9aed4025 Always pass path to formula constructor 2014-06-12 23:14:01 -05:00
Jack Nagel
d3ad1212fb Make compiler objects directly 2014-06-12 23:13:17 -05:00
Jack Nagel
718b6f8b0c No need to send, just call the method 2014-06-12 21:47:36 -05:00
Jack Nagel
4c0d2c2bfb Handle failures in temporary_install better 2014-06-12 21:33:55 -05:00
Jack Nagel
1beefdb5d0 Remove repeated test code 2014-06-12 21:31:51 -05:00
Jack Nagel
3f3ba8462e Always expand __FILE__ 2014-06-12 18:14:48 -05:00
Jack Nagel
8c2db70cf8 Always pass a path to formula constructor in tests 2014-06-12 17:58:12 -05:00
Jack Nagel
59981c5b4c Move a test class that is only used once into the test 2014-06-12 17:58:12 -05:00