# frozen_string_literal: true

require_relative "../../abstract_unit"
require "active_support/core_ext/pathname/existence"

class PathnameExistenceTest < ActiveSupport::TestCase
  def test_presence
    existing = Pathname.new(__FILE__)
    not_existing = Pathname.new("not existing")
    assert_equal existing, existing.existence
    assert_nil not_existing.existence
  end
end

# frozen_string_literal: true

require_relative "../../abstract_unit"
require "active_support/core_ext/pathname/existence"

class PathnameExistenceTest < ActiveSupport::TestCase
  def test_existence
    existing = Pathname.new(__FILE__)
    not_existing = Pathname.new("not existing")
    assert_equal existing, existing.existence
    assert_nil not_existing.existence
  end
end

Fix test name in PathnameExistenceTest
Fix test name in PathnameExistenceTest

This was likely a copy-paste typo from
https://github.com/rails/rails/blob/00fb4e6bbdeefe3b4ffc48a6c74f593666f7d594/activesupport/test/core_ext/object/blank_test.rb#L32
introduced in 1a14bcb8cd3c9838a2d441180f5e99d34835c940
