aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_build_environment.rb
AgeCommit message (Collapse)Author
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-13Drop unnecessary parens in testsJack Nagel
2014-07-07Remove proc handling from BuildEnvironmentJack Nagel
2014-07-07Simplify BuildEnvironmentDSL test setupJack Nagel
2014-07-07Merge should return selfJack Nagel
2014-07-07Fix BuildEnvironment marshalling testJack Nagel
2014-07-07Don't need mocks hereJack Nagel
2014-07-07Only store one proc per BuildEnvironment instanceJack Nagel
2014-06-18Use assert_predicateJack Nagel
2014-06-18Use a custom test class so we can avoid monkeypatchingJack 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-02-25BuildEnvironment: use separate sets for procs and symbolsJack Nagel
2013-01-21Object#instance_exec for Ruby 1.8.6Jack Nagel
Not thread safe! But I don't think we care. We want to evaluate the env DSL block in the context of ENV for asthetic reasons, but we also want access to methods on the requirement instance. We can use #instance_exec to pass the requirement itself into the block: class Foo < Requirement env do |req| append 'PATH', req.some_path end def some_path which 'something' end end Also add a simplified version of Object#instance_exec for Ruby 1.8.6.
2013-01-21Allow env DSL to take a blockJack Nagel
In addition to env :userpaths env :std requirements can now do env do append 'PATH', '/some/path/to/bin' # and more end
2013-01-15Tests for BuildEnvironmentJack Nagel