Feature: Detecting compiled files
  When a file is compiled but not git ignored, let the user know.

  Background:
    Given a file named "git_cleanser.yml" with:
      """
      ---
      compiled_files_command: echo "object.o"
      """
    And an empty file named "object.o"

  Scenario:
    Given a file named ".gitignore" with:
      """
      *.o
      """
    When I run `git_cleanser`
    Then its output for "generated_but_not_ignored" should not contain "object.o"

  Scenario:
    Given an empty file named ".gitignore"
    When I run `git_cleanser`
    Then its output for "generated_but_not_ignored" should contain "object.o"

Feature: Detecting compiled files
  When a file is compiled but not git ignored, let the user know.

  Scenario:
    Given a file named "git_cleanser.yml" with:
      """
      ---
      compiled_files_command: echo ignored.o committed.o
      """
    And a file named ".gitignore" with:
      """
      ignored.o
      """
    And an empty file named "ignored.o"
    And an empty file named "committed.o"
    When I run `git_cleanser`
    Then its output for "generated_but_not_ignored" should contain "committed.o"
    Then its output for "generated_but_not_ignored" should not contain "ignored.o"

Rework detecting compiled files feature to reduce scenario count
Rework detecting compiled files feature to reduce scenario count
