Skip to content
Snippets Groups Projects
Commit 9822faa5 authored by Jack Nagel's avatar Jack Nagel
Browse files

Simplify BuildEnvironmentDSL test setup

parent a13a4f47
No related branches found
No related tags found
No related merge requests found
......@@ -52,11 +52,9 @@ end
class BuildEnvironmentDSLTests < Homebrew::TestCase
def make_instance(&block)
Class.new do
extend BuildEnvironmentDSL
def env; self.class.env end
class_eval(&block)
end.new
obj = Object.new.extend(BuildEnvironmentDSL)
obj.instance_eval(&block)
obj
end
def test_env_single_argument
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment