Sha256: e8d88629722936d6e90763397728c071a1784f4c6a9dc7af7d995965e4611a7b

Contents?: true

Size: 1.37 KB

Versions: 11

Compression:

Stored size: 1.37 KB

Contents

Feature: `push' command

  Scenario: Pushes translations in a specific locales file
    Given I have a valid project on localeapp.com with api key "MYAPIKEY"
    And an initializer file
    And an empty file named "config/locales/en.yml"
    When I successfully run `localeapp push config/locales/en.yml`
    Then the output should contain:
    """
    Localeapp Push

    Pushing file en.yml:
    Success!

    config/locales/en.yml queued for processing. (id: 12345)
    """

  Scenario: Pushes all locales within given directory
    Given I have a valid project on localeapp.com with api key "MYAPIKEY"
    And an initializer file
    And an empty file named "config/locales/en.yml"
    And an empty file named "config/locales/es.yml"
    When I successfully run `localeapp push config/locales`
    Then the output should contain:
    """
    Localeapp Push

    Pushing file en.yml:
    Success!

    config/locales/en.yml queued for processing. (id: 12345)

    Pushing file es.yml:
    Success!

    config/locales/es.yml queued for processing. (id: 12345)
    """

  Scenario: Reports an error when the given API key is incorrect
    Given no project exist on localeapp.com with API key "MYAPIKEY"
    And an empty file named "config/locales/en.yml"
    When I run `localeapp -k MYAPIKEY push config/locales/en.yml`
    Then the exit status must be 70
    And the output must match /error.+404/i

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
localeapp-3.3.0 features/push.feature
localeapp-3.2.0 features/push.feature
localeapp-3.1.3 features/push.feature
localeapp-3.1.2 features/push.feature
localeapp-3.1.1 features/push.feature
localeapp-3.1.0 features/push.feature
localeapp-3.0.1 features/push.feature
localeapp-3.0.0 features/push.feature
localeapp-2.5.0 features/push.feature
localeapp-2.4.0 features/push.feature
localeapp-2.3.0 features/push.feature