Sha256: 92e7023124587415816c780777bd54e65dfa49efbc1c2b1f80f9c4640c98b598

Contents?: true

Size: 1.62 KB

Versions: 18

Compression:

Stored size: 1.62 KB

Contents

@locale_manipulation
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 the page title "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
    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:"

  Scenario: Overriding resource details table title
    Given a configuration of:
    """
      ActiveAdmin.register Post
    """
    And String "Post detailed information" corresponds to "resources.post.details"
    And I am logged in
    And a post exists
    When I go to the last post's show page
    Then I should see "Post detailed information"

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
activeadmin-rb-1.6.0 features/i18n.feature
activeadmin-rb-1.5.2 features/i18n.feature
activeadmin-rb-1.5.1 features/i18n.feature
activeadmin-rb-1.5.0 features/i18n.feature
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/i18n.feature
activeadmin-rb-1.4.0 features/i18n.feature
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/i18n.feature
activeadmin-1.3.1 features/i18n.feature
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/i18n.feature
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/i18n.feature
activeadmin-1.3.0 features/i18n.feature
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/i18n.feature
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/i18n.feature
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/i18n.feature
activeadmin-1.2.1 features/i18n.feature
activeadmin-1.2.0 features/i18n.feature
activeadmin-1.1.0 features/i18n.feature
activeadmin-1.0.0 features/i18n.feature