Skip to content
Snippets Groups Projects
Commit bd0a1314 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #2069 from reitermarkus/spec-compiler_failure

Use `alias_matcher` for `fail_with`.
parents 96a695bc 68a24719
No related branches found
No related tags found
No related merge requests found
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)
......
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