aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2013-04-27Don't test error messageJack Nagel
Now that we are testing for a custom exception type, we don't need to make any assertion about the message.
2013-04-27Allow `brew versions` to work with underspecified formulaeJack Nagel
2013-04-26Add deps target to tests Rakefile for needed gems.Mike McQuaid
2013-04-24Add a couple more version testsJack Nagel
2013-04-24Split up big version detection testJack Nagel
2013-04-16Add tests for FormulaPin and simplify implementationJack Nagel
2013-04-15Don't create MacOS.version multiple timesJack Nagel
2013-04-13Remove extra requireJack Nagel
2013-04-13Use assert_operatorJack Nagel
2013-04-13Remove obsolete testsJack Nagel
This behavior is now tested at more appropriate levels in test_software_spec, test_formula_spec_selection, and test_formula_validation.
2013-04-13Make a specific assertion in this testJack Nagel
2013-04-13Raise a useful exception for incomplete formulaeJack Nagel
2013-04-13Add tests for formula spec selectionJack Nagel
These tests document the relative precedence of the stable, bottle, devel, and head specifications, and the conditions that can influence which is selected (e.g. command-line flags).
2013-04-13Allow "devel-only" formulaeJack Nagel
It seems only natural that this should be possible, or at the very least, it should not result in calling methods on nil.
2013-04-13Improved formula attribute validationJack Nagel
The initializer for Formula does a number of validations, but it does them in a weird order, and some attributes aren't validated under certain circumstances. This became even more of a mess when most software package attributes were moved into the SoftwareSpec class. This commit removes the last vestiges of storing these attributes as instance variables. In particular, it eliminates #set_instance_variable and #validate_variable, replacing them with methods that operate on SoftwareSpec instances, and generate more useful errors. Doing these validations unconditionally in the initializer means we bail out much earlier if the formula has invalid attributes or is not fully specified, and no longer need to validate in #prefix. Technically we don't need to validate in #brew either, but we continue to do so anyway as a safety measure, and because we cannot enforce calls to super in subclasses.
2013-04-13Clean up checksum verification testsJack Nagel
2013-04-10Eliminate test_bucketJack Nagel
Most of the behavior tested here is now tested elsewhere. Move the remaining useful tests to better places.
2013-04-10More comprehensive tests for Pathname extensionJack Nagel
2013-04-10Make test formulae initializers more flexibleJack Nagel
2013-04-10Move formula equality tests out of test_bucketJack Nagel
2013-04-09Check existence rather than rescue exceptionsJack Nagel
2013-04-09Simplify these testsJack Nagel
2013-04-08Clean up mirror support testJack Nagel
2013-04-08Fix argument order in test_comparablesetJack Nagel
2013-04-08Fix specs in TestBallJack Nagel
2013-04-08Tests for SoftwareSpec and subclassesJack Nagel
2013-04-08Ensure ARGV is cleaned upJack Nagel
2013-04-07Clean up some things in test_bucketJack Nagel
2013-04-07Simplify testsJack Nagel
2013-04-07Define RUBY_PATH for testsJack Nagel
2013-04-07test_patching: inline test classesJack Nagel
2013-04-07Isolate ARGV extension testsJack Nagel
2013-04-07Delete pointless testJack Nagel
2013-04-07Tests for AbstractDownloadStrategyJack Nagel
2013-04-07Tests for Checksum classJack Nagel
2013-04-02Suppress warnings in test_pathname_installJack Nagel
2013-04-02Add test for differing module and import nameJack Nagel
2013-04-02Fix requires in test_x11_dependency.rbJack Nagel
2013-04-02Shrink requirements.rbJack Nagel
2013-04-02Don't use "assert_not_nil"Jack Nagel
2013-04-02Split out and fix LanguageModuleDependency testsJack Nagel
2013-04-02Add new tests for fails_with DSLJack Nagel
2013-04-02Isolate compiler selector testsJack Nagel
2013-04-02Bump useable clang version to 318Jack Nagel
Build 211 can build most things, but I've seen intermittent miscompilation and slower code. Also it comes from Xcode 4.2, so most people don't have it anyway. Let's use 218 as the minimum viable version.
2013-04-01Test that X11 env is triggered correctlyJack Nagel
2013-04-01Requirement: env DSL is evaluated in context of self, not ENVJack Nagel
This was meant to support: env do |req| append_path 'PATH', req.some_method ... end i.e., the block was evaluated in the context of ENV. But it turned out to be not so useful after all, so I'm ripping it out before something actually depends on it.
2013-04-01Make testing_env somewhat readableJack Nagel
2013-04-01Silence stderr in test suiteJack Nagel
2013-03-28Suppress uninitialized instance variable warningsJack Nagel
2013-03-28Suppress ambiguous argument and grouped expression warningsJack Nagel