aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-12 23:12:15 -0500
committerJack Nagel2014-06-12 23:13:17 -0500
commitd3ad1212fb175d22627e42d9da15ce8c8eeb5b6b (patch)
tree74e57eda100c58f6aa5777699068c2f804d39e5a /Library
parent718b6f8b0c5755db65a034348eacc34673980480 (diff)
downloadbrew-d3ad1212fb175d22627e42d9da15ce8c8eeb5b6b.tar.bz2
Make compiler objects directly
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_fails_with.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/Library/Homebrew/test/test_fails_with.rb b/Library/Homebrew/test/test_fails_with.rb
index 6491e77d6..7030b3431 100644
--- a/Library/Homebrew/test/test_fails_with.rb
+++ b/Library/Homebrew/test/test_fails_with.rb
@@ -2,10 +2,6 @@ require 'testing_env'
require 'test/testball'
class FailsWithTests < Test::Unit::TestCase
- class Double < Compiler
- attr_accessor :name, :version
- end
-
def assert_fails_with(cc)
assert @f.new.fails_with?(cc)
end
@@ -18,11 +14,8 @@ class FailsWithTests < Test::Unit::TestCase
@f.fails_with(*args, &block)
end
- def build_cc(sym, build, version=nil)
- cc = Double.new
- cc.name = sym
- cc.version = version || build
- cc
+ def build_cc(name, version)
+ Compiler.new(name, version)
end
def setup