mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Use alias_matcher
for fail_with
.
This commit is contained in:
parent
60ba0e481e
commit
68a2471916
@ -1,12 +1,8 @@
|
|||||||
require "compilers"
|
require "compilers"
|
||||||
|
|
||||||
describe CompilerFailure do
|
RSpec::Matchers.alias_matcher :fail_with, :be_fails_with
|
||||||
matcher :fail_with do |expected|
|
|
||||||
match do |actual|
|
|
||||||
actual.fails_with?(expected)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
describe CompilerFailure do
|
||||||
describe "::create" do
|
describe "::create" do
|
||||||
it "creates a failure when given a symbol" do
|
it "creates a failure when given a symbol" do
|
||||||
failure = described_class.create(:clang)
|
failure = described_class.create(:clang)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user