Sha256: efe841d1310016d933ec09a28c0efd7d0008787cda5e98b297c3fa4f6971d9ee

Contents?: true

Size: 925 Bytes

Versions: 3

Compression:

Stored size: 925 Bytes

Contents

Feature: Continuous Integration
  As a Ruby developer, I want builds to fail when my project encounters tailor
  errors so I can be sure to fix those errors as soon as possible.

  Scenario: Warnings found, but not errors
    Given my configuration file ".tailor" looks like:
    """
    Tailor.config do |config|
      config.file_set do |style|
        style.trailing_newlines 0, level: :warn
      end
    end
    """
    And a file named "warnings.rb" with:
    """
    puts 'hi'
    
    
    """
    When I successfully run `tailor -d -c .tailor warnings.rb`
    Then the output should match /File has 2 trailing newlines/
    And the exit status should be 0
    
  Scenario: Errors found
    Given a file named "errors.rb" with:
    """
    puts 'hi'
    
    
    """
    When I run `tailor -d -c .tailor errors.rb`
    Then the output should match /File has 2 trailing newlines/
    And the exit status should be 1

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tailor-1.1.3 features/continuous_integration.feature
tailor-1.1.2 features/continuous_integration.feature
tailor-1.1.1 features/continuous_integration.feature