The method has always been available. See https://github.com/seattlerb/minitest/commit/17bc421f953aac4b8930c6049f6e73ffb87b8b64

mattheworiordan <notifications@github.com> schrieb:
>> @@ -9,7 +9,7 @@
>>      ActionDispatch::IntegrationTest.send method do |context|
>>        # by adding the argument context, MiniTest passes the context
>of the test
>>        # which has an instance variable @passed indicating success /
>failure
>> -      failed = context.instance_variable_get(:@passed).blank?
>> +      failed = !context.passed?
>
>@cschramm, would it not make sense to check for both so that we're not
>dependent on MiniTest 5?  Perhaps something like:
>```ruby
>failed = if context.methods.include?(:passed?)
>  !context.passed?
>else
>  context.instance_variable_get(:@passed).blank?
>end 
>```
>
>WDYT?
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/mattheworiordan/capybara-screenshot/pull/69/files#r8700980