Sha256: 56c363c78ca88dda0f70b4290e1aaea065b09303fb1eb00550d6b9ad9aee5fca

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

Feature: Internationalization

  ActiveAdmin should use the translations provided by the host app.

  Scenario: Store's model name was translated to "Bookstore"
    Given I am logged in
    And a store named "Hello words" exists
    When I go to the dashboard
    Then I should see "Bookstores"
    When I follow "Bookstores"
    Then I should see "Hello words"
    When I follow "View"
    Then I should see "Bookstore Details"
    And I should see "Hello words"
    And I should see a link to "Delete Bookstore"
    When I follow "Edit Bookstore"
    Then I should see "Edit Bookstore"
    When I press "Update Bookstore"
    Then I should see a flash with "Bookstore was successfully updated."

  Scenario: Switching language at runtime
    Given I am logged in
    And a configuration of:
    """
      ActiveAdmin.register Store
    """
    When I set my locale to "fr"
    And I go to the dashboard
    Then I should see "Store"
    Then I should see "Déconnexion"

    When I set my locale to "en"
    And I go to the dashboard
    Then I should see "Bookstore"
    Then I should see "Logout"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-0.5.0 features/i18n.feature
activeadmin-0.5.0.pre1 features/i18n.feature
activeadmin-0.5.0.pre features/i18n.feature