You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_find_executable.rb
    path of file: ./repos/ruby-packer/ruby/test/mkmf
    
    the code of the file until where you have to start completion: # frozen_string_literal: false
require_relative 'base'

class Tes
    
    def test_find_executable
      bug2669 = '[ruby-core:27912]'
      each_exts do |full, name|
        begin
          open(full, "w") {|ff| ff.chmod(0755)}
          result = mkmf {find_executable(name)}
        ensure
          File.unlink(full)
        end
        assert_equal("#{@tmpdir}/#{full}", result, bug2669)
      end