726 Commits

Author SHA1 Message Date
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
Jack Nagel
a50f09c343 Remove an extra slash in file:// URLs in tests 2014-06-12 17:58:12 -05:00
Jack Nagel
9a554f5f4b Use example.com as domain in tests 2014-06-12 17:58:12 -05:00
Jack Nagel
4f476d7066 Remove dummy method 2014-06-12 17:58:12 -05:00
Jack Nagel
4651b5214f Remove a const_defined? check 2014-06-12 16:09:03 -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
c319eb1f01 Decouple CompilerSelector from MacOS, clean up tests 2014-06-11 21:23:05 -05:00
Jack Nagel
f3e9c5c070 Fix up some assertions 2014-06-11 13:05:10 -05:00
Jack Nagel
ddc615366c Use assert_empty 2014-06-11 12:22:29 -05:00
Jack Nagel
5ec52ea4da Remove unnecessary require 2014-06-10 22:29:20 -05:00
Jack Nagel
dd1f742854 Remove unnecessary code 2014-06-10 21:50:58 -05:00
Jack Nagel
0505582507 Rename TEST_FOLDER to TEST_DIRECTORY 2014-06-10 21:49:41 -05:00
Jack Nagel
dbe82909a3 Remove ABS__FILE constant from test environment 2014-06-10 21:46:29 -05:00
Jack Nagel
9a0098dbec Scope setup to the tests that need it 2014-06-10 21:21:09 -05:00
Jack Nagel
6e634890e8 Add methods for building test file paths 2014-06-10 21:21:06 -05:00
Jack Nagel
5263f50f74 Trust the fixtures and stop asserting on file(1) output 2014-06-10 20:40:51 -05:00
Jack Nagel
e3472540c1 Pull common code into setup method 2014-06-10 20:40:51 -05:00
Jack Nagel
c7685d2b70 Extract constant strings 2014-06-10 20:24:07 -05:00
Jack Nagel
df7756aeb9 Pull mock initialization code into initialize 2014-06-10 20:04:51 -05:00
Jack Nagel
65673d60c1 Move updater mock into test class namespace 2014-06-10 20:03:37 -05:00
Jack Nagel
d8f86f290b Use external interface in tests 2014-06-10 19:56:42 -05:00
Jack Nagel
cd4b801749 Simplify test setup 2014-06-10 19:44:46 -05:00
Jack Nagel
ba856de06e Remove rcov rake task
rcov is not compatible with Ruby 2.0.
2014-06-10 17:50:33 -05:00
Jack Nagel
b7a0602f72 Remove ruby-prof rake task
The areas that we are interested in optimizing for performance are
things that are invoked repeatedly, and are not evident in the test
suite.
2014-06-10 17:50:33 -05:00
Jack Nagel
801cdd9045 Remove default values from formula constructor parameters
Closes Homebrew/homebrew#30017.
2014-06-10 15:41:45 -05:00