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

Use the accessors to update the test double

parent 8b338bd5
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ class CompilerSelectorTests < Homebrew::TestCase
end
def test_older_clang_precedence
@versions = CompilerVersions.new(:clang_build_version => 211)
@versions.clang_build_version = 211
@f << :gcc << { :gcc => "4.8" }
assert_equal :llvm, actual_cc
end
......@@ -99,16 +99,13 @@ class CompilerSelectorTests < Homebrew::TestCase
end
def test_missing_gcc
@versions = CompilerVersions.new(:gcc_build_version => nil)
@versions.gcc_build_version = nil
@f << :clang << :llvm << { :gcc => "4.8" }
assert_raises(CompilerSelectionError) { actual_cc }
end
def test_missing_llvm_and_gcc
@versions = CompilerVersions.new(
:gcc_build_version => nil,
:llvm_build_version => nil
)
@versions.gcc_build_version = @versions.llvm_build_version = nil
@f << :clang << { :gcc => "4.8" }
assert_raises(CompilerSelectionError) { actual_cc }
end
......
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