Sha256: ef9ce9854f6744500baa7074f76e1c341574533e1302f8481889cbada1bef440

Contents?: true

Size: 1.13 KB

Versions: 16

Compression:

Stored size: 1.13 KB

Contents

Feature: detects magick numbers
  In order to find magick numbers
  As a ruby developer
  I want to run warder with --magick-numbers option

  Scenario: run warder with enabled magick numbers option
    Given I have valid file in directory
    When I run `warder --magick-numbers`
    Then warder detects magick numbers issues
    Then the exit status should be 0

  Scenario: run warder with enabled magick numbers option on invalid file
    Given I have invalid_magick_numbers file in directory
    When I run `warder --magick-numbers`
    Then warder detects magick numbers issues
    Then the exit status should be 1

  Scenario: run warder with enabled magick numbers option on valid file only
    Given I have valid file in directory
    And I have invalid_magick_numbers file in directory
    When I run `warder --magick-numbers valid.rb`
    Then warder does nothing
    Then the exit status should be 0

  Scenario: run warder with disabled style guide option on invalid file
    Given I have invalid_magick_numbers file in directory
    When I run `warder --no-magick-numbers`
    Then warder does nothing
    Then the exit status should be 0

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
warder-0.3.2 features/detects_magick_numbers.feature
warder-0.3.1 features/detects_magick_numbers.feature
warder-0.3.0 features/detects_magick_numbers.feature
warder-0.2.4 features/detects_magick_numbers.feature
warder-0.2.3 features/detects_magick_numbers.feature
warder-0.2.2 features/detects_magick_numbers.feature
warder-0.2.1 features/detects_magick_numbers.feature
warder-0.2.0 features/detects_magick_numbers.feature
warder-0.1.9 features/detects_magick_numbers.feature
warder-0.1.8 features/detects_magick_numbers.feature
warder-0.1.7 features/detects_magick_numbers.feature
warder-0.1.6 features/detects_magick_numbers.feature
warder-0.1.5 features/detects_magick_numbers.feature
warder-0.1.4 features/detects_magick_numbers.feature
warder-0.1.3 features/detects_magick_numbers.feature
warder-0.1.2 features/detects_magick_numbers.feature