Sha256: e7682561740a22fae343e5e96e2b9cbef46b12f389317f300764e136168cada6

Contents?: true

Size: 1.43 KB

Versions: 39

Compression:

Stored size: 1.43 KB

Contents

Feature: i18n merging path trees

  Scenario: Mixing localized and non-localized sources and merging the path trees (see issue #1709)
    Given a fixture app "i18n-test-app"
    And a file named "config.rb" with:
      """
      activate :i18n, mount_at_root: :en, langs: [:en, :es]
      """
    Given the Server is running at "i18n-mixed-sources"

    When I go to "/"
    Then I should see "Current locale: en"
    Then I should see "path: is-localized Home"
    When I go to "/es"
    Then I should see "Current locale: es"
    Then I should see "path: is-localized Home"

    When I go to "/a/"
    Then I should see "Current locale: en"
    Then I should see "path: is-localized Home # a/index.html.erb"
    When I go to "/es/a/"
    Then I should see "Current locale: es"
    Then I should see "path: is-localized Home # a/index.html.erb"

    When I go to "/b/"
    Then I should see "Current locale: en"
    Then I should see "path: is-localized Home # b/index.html.erb"

    When I go to "/a/sub.html"
    Then I should see "Current locale: en"
    Then I should see "path: is-localized Home # a/index.html.erb # a/sub.html.erb"

    When I go to "/b/sub.html"
    Then I should see "Current locale: en"
    Then I should see "path: is-localized Home # b/index.html.erb # b/sub.html.erb"

    When I go to "/es/b/sub.html"
    Then I should see "Current locale: es"
    Then I should see "path: is-localized Home # b/index.html.erb # b/sub.html.erb"

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
middleman-core-4.6.0 features/i18n_mixed_sources.feature
middleman-core-4.5.1 features/i18n_mixed_sources.feature
middleman-core-4.5.0 features/i18n_mixed_sources.feature
middleman-core-4.4.3 features/i18n_mixed_sources.feature
middleman-core-4.4.2 features/i18n_mixed_sources.feature
middleman-core-4.4.0 features/i18n_mixed_sources.feature
middleman-core-4.3.11 features/i18n_mixed_sources.feature
middleman-core-4.3.10 features/i18n_mixed_sources.feature
middleman-core-4.3.8 features/i18n_mixed_sources.feature
middleman-core-4.3.7 features/i18n_mixed_sources.feature
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/features/i18n_mixed_sources.feature
middleman-core-4.3.6 features/i18n_mixed_sources.feature
middleman-core-4.3.5 features/i18n_mixed_sources.feature
middleman-core-4.3.4 features/i18n_mixed_sources.feature
middleman-core-4.3.3 features/i18n_mixed_sources.feature
middleman-core-4.3.2 features/i18n_mixed_sources.feature
middleman-core-4.3.1 features/i18n_mixed_sources.feature
middleman-core-4.3.0 features/i18n_mixed_sources.feature
middleman-core-with-external-sources-watch-fix-4.1.10 features/i18n_mixed_sources.feature
middleman-core-with-external-sources-watch-fix-4.1.0 features/i18n_mixed_sources.feature