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_name_error.rb
    path of file: ./repos/ruby/test/ruby
    
    the code of the file until where you have to start completion: require 'test/unit'

class TestNameError < Test::Unit::TestCase
  def test_new_default
    error = NameError.new
    assert_equal("NameError", error.message)
  end

  def test_new_message
    error = NameError.new("Message")
    assert_equal("Message", error.message)
  end

  def test_new_name
    error = NameError.new("Message")
    assert_nil(error.name)

    error = NameError.new("Messa
    
  def test_info_method
    obj = PrettyObject.new

    e = assert_raise(NameError) {
      obj.instance_eval {foo}
    }
    assert_equal(:foo, e.name)
    assert_same(obj, e.receiver)

    e = assert_raise(NoMethodError) {
      obj.foo(1, 2)
    }
    assert_equal(:foo, e.name)
    assert_equal([1, 2], e.args)
    assert_same(obj, e.receiver)
    assert_not_predicate(e, :private_call?)

    e = assert_raise(NoMethodError) {
      obj.instance_eval {foo(1, 2)}
    }
    assert_equal(:foo, e.name)
    assert_equal([1, 2], e.args)
    assert_same(obj, e.receiver)
    assert_predicate(e, :private_call?)
  end