Skip to content

Authlogic is incompatible with Minitest v5.19.0 and later #766

@toncid

Description

@toncid

ISSUES THAT DO NOT FOLLOW THIS TEMPLATE WILL BE CLOSED IMMEDIATELY.

  • This is not a usage question.
    • Our volunteers' time is limited, so please ask usage questions on StackOverflow.
  • This is not a security issue.
  • This bug is reproducible with a clean install of authlogic
  • I am committed to fixing this in a reasonable amount of time, and responding promptly to feedback.

Expected Behavior

The authlogic/test_case.rb should be extended with the following includes:

module Authlogic
  module TestCase
    ...
  end

  ...

  # new includes
  ::Minitest::Unit::TestCase.send(:include, TestCase) if defined?(::Minitest::Unit::TestCase)
  ::Minitest::Test.send(:include, TestCase) if defined?(::Minitest::Test)
end

Actual Behavior

Tests fail because Minitest removed a legacy compatibility layer in v5.19.0 and test classes are no longer included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions