aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-21 00:24:24 +0100
committerGitHub2017-02-21 00:24:24 +0100
commitbd0a1314c8a2676a69b81ba840fb7ea6e50ae736 (patch)
treecadc4089013dfd8ac60e80c1616eb41ab025fc32
parent96a695bc6dd200800a17bcbb2605ee77f326807f (diff)
parent68a2471916bfbe1a4491e92c097f93c38cdaeecc (diff)
downloadbrew-bd0a1314c8a2676a69b81ba840fb7ea6e50ae736.tar.bz2
Merge pull request #2069 from reitermarkus/spec-compiler_failure
Use `alias_matcher` for `fail_with`.
-rw-r--r--Library/Homebrew/test/compiler_failure_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/test/compiler_failure_spec.rb b/Library/Homebrew/test/compiler_failure_spec.rb
index 81e464a87..b4fab0b27 100644
--- a/Library/Homebrew/test/compiler_failure_spec.rb
+++ b/Library/Homebrew/test/compiler_failure_spec.rb
@@ -1,12 +1,8 @@
require "compilers"
-describe CompilerFailure do
- matcher :fail_with do |expected|
- match do |actual|
- actual.fails_with?(expected)
- end
- end
+RSpec::Matchers.alias_matcher :fail_with, :be_fails_with
+describe CompilerFailure do
describe "::create" do
it "creates a failure when given a symbol" do
failure = described_class.create(:clang)