# File test/bin/test_grep.rb, line 142
  def test_main_0501
    tempfile1 = create_tempfile("abcde\nfghij\nFGHIJ\n")
    @obj.main(["--ignore", "ghi", tempfile1.path])
    assert_equal(
      "fghij\nFGHIJ\n",
      @string_io.string)
    tempfile1.close
  end