Sha256: 7d0ee3de6b166c3371dac5e063048f0247de07ba96eac5108a61e6322b18c06c

Contents?: true

Size: 1.28 KB

Versions: 53

Compression:

Stored size: 1.28 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"

  Scenario: Overriding translations
    Given I am logged in
    And a store named "Hello words" exists
    When I go to the dashboard
    When I follow "Bookstores"
    Then I should see "Download this:"

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
activeadmin-0.6.6 features/i18n.feature
activeadmin-0.6.5 features/i18n.feature
activeadmin-0.6.4 features/i18n.feature
activeadmin-0.6.3 features/i18n.feature
activeadmin-0.6.2 features/i18n.feature
activeadmin-0.6.1 features/i18n.feature
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/i18n.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/i18n.feature