require "active_model/lint"
require "test/unit/assertions"

shared_examples_for "ActiveModel" do
  include ActiveModel::Lint::Tests
  include Test::Unit::Assertions

  before { @model = subject }

  ActiveModel::Lint::Tests.public_instance_methods.map(&:to_s).grep(/^test/).each do |test|
    example test.gsub("_", " ") do
      send test
    end
  end
end

require "active_model/lint"
require "test/unit/assertions"

shared_examples_for "ActiveModel" do
  include ActiveModel::Lint::Tests
  include Test::Unit::Assertions
  attr_writer :assertions

  def assertions
    @assertions ||= 0
  end

  before { @model = subject }

  ActiveModel::Lint::Tests.public_instance_methods.map(&:to_s).grep(/^test/).each do |test|
    example test.gsub("_", " ") do
      send test
    end
  end
end

Update specs to pass with minitest 5
Update specs to pass with minitest 5
