Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Add AssertionFailedError monkeypatch to Test::Unit #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions features/matchers/match_unless_raises.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Feature: match unless raises
Given a file named "example.rb" with:
"""
require 'test/unit/assertions'

module Test
module Unit
AssertionFailedError = MiniTest::Assertion if defined?(MiniTest) && !defined?(AssertionFailedError)
end
end

Spec::Matchers.define :be_the_same_as do |expected|
extend Test::Unit::Assertions
Expand Down