aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula.rb
AgeCommit message (Collapse)Author
2015-04-20Revert "Use real repo to run tests"Jack Nagel
This reverts commit 5aaf13c6cf784cb4be62932b3e528e8f93580a65.
2015-04-20Use real repo to run testsJack Nagel
2015-04-18Remove bad testJack Nagel
2015-04-15Fix test formula name so it matches the filenameJack Nagel
2014-12-28Use formula helper in testsJack Nagel
2014-12-28Drop pointless subclass in testJack Nagel
2014-12-27Preserve signature of #initialize in testsJack Nagel
2014-12-27Stop testing accessor typeJack Nagel
2014-12-27Remove dead codeJack Nagel
2014-12-26Remove unnecessary require from testJack Nagel
2014-11-07Normalize requires in testsJack Nagel
2014-10-29Add predicate methods for specs and stop testing internalsJack Nagel
2014-08-10Add a test for legacy optionsJack Nagel
2014-07-03Add assert_eql to provide better failure messages for eql? testsJack Nagel
2014-07-03Fix Formula#<=> on trunk RubyJack Nagel
Arguably this method shouldn't exist and sort_by(&:name) used instead.
2014-07-02Add regression test for decf7acced44bb156ba18677f55609b19ff6ca5aJack Nagel
2014-06-23Fix directory leaks in formula prefix testsJack Nagel
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-20Decouple spec selection from ARGVJack Nagel
2014-06-20Pass the requested spec into the formula instanceJack Nagel
2014-06-18Use assert_predicateJack Nagel
2014-06-18Switch to MinitestJack Nagel
2014-06-18Move test helpers into Homebrew::TestCaseJack Nagel
2014-06-18Use a custom test class so we can avoid monkeypatchingJack Nagel
2014-06-12Always expand __FILE__Jack Nagel
2014-06-12Always pass a path to formula constructor in testsJack Nagel
2014-06-12Use example.com as domain in testsJack Nagel
2014-06-12Remove dummy methodJack Nagel
2014-06-10Remove default values from formula constructor parametersJack Nagel
Closes #30017.
2014-06-04Clean up some test assertionsJack Nagel
2014-04-06Clean up test classesJack Nagel
2014-03-10Make bottle implementation more genericJack Nagel
2014-03-05Encode formula revision in installation prefixJack Nagel
In order to allow kegs built with the same version but differing formula revisions to coexist, we must encode the revision as part of the keg's name. This is necessary to actually perform an upgrade, as we cannot upgrade a keg in-place, and temporarily moving it pending the result of the upgrade is error-prone and potentially slow. To accomplish this, we introduce a new Formula#pkg_version method that concatenates the active_spec version with the formula revision. An exception is made for a formula that has no revision: the tag is omitted. This preserves compatibility with existing installations.
2014-02-21Eliminate nil check on path parameterJack Nagel
2014-02-21Move Formula.class_s to FormularyJack Nagel
2014-02-21Remove downloader from FormulaJack Nagel
2014-02-21Remove test with too much implementation knowledgeJack Nagel
2013-12-14Update string references to mxcl/homebrew.Mike McQuaid
2013-12-11Simplify prefix testJack Nagel
2013-12-09Extract constants for checkums in testsJack Nagel
2013-10-30Cleanup use of some global constants.Mike McQuaid
2013-10-23test_formula: add Mavericks bottles.Mike McQuaid
2013-10-23test_formula: use different/consistent SHA-1.Mike McQuaid
2013-10-22Eagerly initialize formula specsJack Nagel
Declarations of dependencies, options, and resources in the DSL only apply to specs that have already been initialized. For example, given this snippet: url ... sha1 ... depends_on 'foo' devel do url ... sha1 ... end The dependency 'foo' will be recorded for the stable spec, but not the devel spec, since it was not initialized prior to the call to depends_on. While it is considered best practice to declare all specs (stable, devel, head, and bottle) prior to other declarations, there is nothing that enforces this ordering, so when it happens it can be confusing and hard to debug. To prevent this, we can initialize all specs up front. This comes with a performance penalty for commands that load all formulae into memory, but that is probably outweighed by what we gain in correctness. Fixes #23425.
2013-10-04Check types in Formula#==Jack Nagel
Comparing two objects should not raise an exception, even if they have different types. The semantics of #== are now the same as #eql?, so make one an alias.
2013-09-21Move dependencies to SoftwareSpecJack Nagel
2013-09-13Stop exposing the download strategy from FormulaJack Nagel
2013-08-31Add test for option description rulesJack Nagel
2013-08-31Add test for dependency optionsJack Nagel
2013-05-25Add tests for Formula#installed_prefixJack Nagel