Sha256: e643f1626a44212445d2a746ec16b9ce6344f362276b4e6245fb24cfa3056d09

Contents?: true

Size: 858 Bytes

Versions: 3

Compression:

Stored size: 858 Bytes

Contents

Feature: Handling different locales
  In order to work in a variety of environments
  As a developer
  I want Reek to work properly in any locale

  Scenario: Running Reek in an UTF-8 locale
    Given I set the environment variable "LANG" to "en_US.utf8"
    And a file "konnichiwa.rb" with:
    """
    puts 'こんにちは世界'
    """
    When I run `reek -V konnichiwa.rb`
    Then it succeeds
    And it reports no errors
    And it reports:
      """
      konnichiwa.rb -- 0 warnings
      """

  Scenario: Running Reek in the POSIX locale
    Given I set the environment variable "LANG" to "POSIX"
    And a file "konnichiwa.rb" with:
    """
    puts 'こんにちは世界'
    """
    When I run `reek -V konnichiwa.rb`
    Then it succeeds
    And it reports no errors
    And it reports:
      """
      konnichiwa.rb -- 0 warnings
      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reek-4.8.1 features/locales.feature
reek-4.8.0 features/locales.feature
reek-4.7.3 features/locales.feature