Sha256: 85b1b27d4941e3e1dc31838a3647d9ec29625290d311b2526c8ca90b0d406dcf

Contents?: true

Size: 1.56 KB

Versions: 16

Compression:

Stored size: 1.56 KB

Contents

Feature: Getting new translations

  Scenario: Running update
    In order to receive the translations that have been updated since the last check
    When I have a valid project on localeapp.com with api key "MYAPIKEY"
    And an initializer file
    And a file named "log/localeapp.yml" with:
    """
    ---
    :updated_at: 120
    :polled_at: 130
    """
    And new translations for the api key "MYAPIKEY" since "120" with time "140"
    And a directory named "config/locales"
    When I run `localeapp update`
    Then the output should contain:
    """
    Localeapp update: checking for translations since 120
    Found and updated new translations
    """
    And help should not be displayed
    And a file named "config/locales/en.yml" should exist
    # check the content here
    # and the localeapp.yml file

  Scenario: Running update with no initializer file, passing the key on the command line
    In order to receive the translations that have been updated since the last check
    When I have a valid project on localeapp.com with api key "MYAPIKEY"
    And a file named "log/localeapp.yml" with:
    """
    ---
    :updated_at: 120
    :polled_at: 130
    """
    And new translations for the api key "MYAPIKEY" since "120" with time "140"
    And a directory named "config/locales"
    When I run `localeapp -k MYAPIKEY update`
    Then the output should contain:
    """
    Localeapp update: checking for translations since 120
    Found and updated new translations
    """
    And help should not be displayed
    And a file named "config/locales/en.yml" should exist

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
localeapp-0.7.1 features/update.feature
localeapp-0.7.0 features/update.feature
localeapp-0.6.14 features/update.feature
localeapp-0.6.13 features/update.feature
localeapp-0.6.12 features/update.feature
localeapp-0.6.10 features/update.feature
localeapp-0.6.9 features/update.feature
localeapp-0.6.8 features/update.feature
localeapp-0.6.7 features/update.feature
localeapp-0.6.6 features/update.feature
localeapp-0.6.5 features/update.feature
localeapp-0.6.4 features/update.feature
localeapp-0.6.3 features/update.feature
localeapp-0.6.2 features/update.feature
localeapp-0.6.1 features/update.feature
localeapp-0.6.0 features/update.feature