aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_dependencies.rb
AgeCommit message (Collapse)Author
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-25more unit testsBaptiste Fontaine
Closes Homebrew/homebrew#42096. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-16Rename requirements named *Dependency.Mike McQuaid
Dependency is another similar, related class and it's super confusing to have some Requirements that are named *Dependency. Closes Homebrew/homebrew#38891. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-21Fix dependency equalityJack Nagel
2014-08-13Drop unnecessary parens in testsJack Nagel
2014-07-07Dependency initializer takes an arrayJack Nagel
2014-07-03Add assert_eql to provide better failure messages for eql? testsJack Nagel
2014-07-03Replace ComparableSet with a Requirements collectionJack Nagel
2014-06-18Switch to MinitestJack Nagel
2014-06-18Use a custom test class so we can avoid monkeypatchingJack Nagel
2014-02-13Implement equality for Dependencies collectionsJack Nagel
2013-05-10Add type accessors to DependenciesJack Nagel
2013-01-26Split dependency classes into separate filesJack Nagel
2013-01-26Fix Dependencies -> Array conversionJack Nagel
2013-01-13Split up dependency test coverageJack Nagel
The DependencyCollector tests are really integration tests, while the rest are closer to real unit tests. Split them up so that the tests can be run in isolation on a per-class basis.
2013-01-13Remove <=> from Dependency interfaceJack Nagel
It is important that dep equality corresponds to the name attribute, but we may want to use the Comparable interface to sort them by installation order in the future. Code that needs to sort them alphabetically should just use sort_by.
2013-01-12Beef up deps testsJack Nagel
2013-01-07Remove Array subclassingJack Nagel
Inheriting from Array (and other core types) is problematic: - It exposes a very wide interface with many methods that are not really relevant to the subclass. - It can cause some weird side effects, as many Array operations are in C and have hardcoded return values; for example, combining two array subclasses returns a new Array instead of the subclass. Avoid these problems using delegation and the Enumerable module where applicable.
2012-10-25Allow requirements to record tagsJack Nagel
To allow depends_on :x11 => :optional and friends to work as expected, make requirements record any tags and add special handling to the X11Dependency to record both a minimum version and additional tags. Signed-off-by: Jack Nagel <jacknagel@gmail.com>