aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
AgeCommit message (Collapse)Author
2014-07-06Close duped output streams before returningJack Nagel
2014-07-03Add assert_eql to provide better failure messages for eql? testsJack Nagel
2014-06-23Add module for logging filesystem leaks in testsJack Nagel
2014-06-23Make the test tmpdir a constantJack Nagel
2014-06-23Explicitly create top-level directories for testsJack Nagel
2014-06-23Give the temporary test directory a prefixJack Nagel
2014-06-23Use Dir.mktmpdir to create temp directory for testsJack Nagel
2014-06-20Pass the requested spec into the formula instanceJack Nagel
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-06-18Combine Homebrew module declarations in testing_envJack 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-16Don't load unused compat files for testsJack Nagel
2014-06-10Remove unnecessary requireJack Nagel
2014-06-10Remove unnecessary codeJack Nagel
2014-06-10Rename TEST_FOLDER to TEST_DIRECTORYJack Nagel
2014-06-10Remove ABS__FILE constant from test environmentJack Nagel
2014-06-09Use RbConfig.ruby if it's availableJack Nagel
2014-06-09Fix formula test helper parametersJack Nagel
2014-05-14Taps: cleanup regexps around TapsTsukasa OMOTO
Closes #29139. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-03The \w character class already includes underscoreJack Nagel
Newer versions of Ruby issue a warning for repeated character classes.
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes #28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-28Add TapDependencyJack Nagel
2014-01-11Fix tokenizing openssl style versionsJack Nagel
Fixes #25736.
2013-12-14Add HOMEBREW_TEMP to testing environmentJack Nagel
2013-12-09Extract constants for checkums in testsJack Nagel
2013-10-25Stop coercing MACOS_VERSION to a floatJack Nagel
2013-10-18Add OS.mac? and OS.linux?Jack Nagel
2013-10-10git_etc: update based on bottle etc/var changes.Mike McQuaid
2013-09-07Optionally use git to keep brew etc versioned.Mike McQuaid
Still in alpha state. Handles defaults and merging changes with new versions. Enable by setting the HOMEBREW_GIT_ETC environment variable. Closes #15751. Closes #17713.
2013-08-19Use File::PATH_SEPARATOR globally instead of ':'Amos Wenger
On Unix, the path separator is ':', whereas on Windows, it is ';'. This is the first of a series of patch to bring macbrew's and winbrew's codebases closer together. The main places the magic constant ':' was being used were: - the $PATH environment variable - CMAKE-related environment variables - pkg-config related environment variables Closes #21921. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-19Rename HomebrewEnvExtension to StdenvJack Nagel
2013-07-28RbConfig::CONFIG['bindir'] is already a stringJack Nagel
2013-06-22Homebrew has an actual license, remove stale commentJack Nagel
2013-06-14Run tests under actual OS versionJack Nagel
2013-06-11Check method existence rather than Ruby versionJack Nagel
2013-06-08Add Enumerable#group_byJack Nagel
2013-06-04Extract attr_rw from Formula for reuseJack Nagel
Closes #20239.
2013-05-25tests: extract common formula helperJack Nagel
2013-05-10Reorganize compatJack Nagel
2013-04-07Define RUBY_PATH for testsJack Nagel
2013-04-01Make testing_env somewhat readableJack Nagel
2013-03-09tests: allow setting MACOS_VERSION from the environmentJack Nagel
This makes it easy to test things that vary depending on this constant without editing testing_env.rb.
2013-01-21Allow satisfied? to be specified in a blockJack Nagel
Instead of overriding #satisfied?, Requirement subclasses can specify the condition in a block: satisfy do some_condition? end The contents of the block are evaluated in the context of the instance, and so have access to instance variables and instance methods as before. Additionally, it is wrapped in an ENV.with_build_environment block. This can be disabled by passing :build_env => false to satisfy: satisfy :build_env => false do some_condition? end
2013-01-21tests: add mocha mocking libraryJack Nagel
2013-01-12Define HOMEBREW_LIBRARY for testsJack Nagel
2012-10-25tests: define assert_empty for Ruby <= 1.8Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-29tests: set newly-visible global constantsJack Nagel
The changes to error ouput and logging require a few more things to be visible during installation tests. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27Make FileUtils extension available globallyJack Nagel
Now that we are monkeypatching copy_metadata, we should load our extension up front for consistency. Signed-off-by: Jack Nagel <jacknagel@gmail.com>