From d3ad1212fb175d22627e42d9da15ce8c8eeb5b6b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 12 Jun 2014 23:12:15 -0500 Subject: Make compiler objects directly --- Library/Homebrew/test/test_fails_with.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3