def usage_displayed(is_exit_zero)
      expect_output "foodcritic [cookbook_paths]"

      usage_options.each do |option|
        expect_usage_option(option[:short], option[:long], option[:description])
      end

      if is_exit_zero
        assert_no_error_occurred
      else
        assert_error_occurred
      end
    end
def usage_displayed(is_exit_zero)
      expect_output "foodcritic [cookbook_paths]"

      usage_options.each do |option|
        expect_usage_option(option[:short], option[:long], option[:description])
      end

      if is_exit_zero
        assert_no_error_occurred
      else
        assert_error_occurred
      end
    end
Assert that the usage message is displayed.

 @param [Boolean] is_exit_zero The exit code to check for.