mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
4fe0732713
* Use "Given" instead of "And" as first scenario step * Remove unnecessary step The following step already invokes this step * Remove setup in feature that doesn't do anything As this referenced "i18n-test-app", but later we run "i18n-mixed-sources", these steps weren't doing anything. * Avoid referencing the same fixture twice The step "the Server is running at" invokes the "a fixture app" step, followed by "the Server is running" step.
42 lines
1.6 KiB
Gherkin
42 lines
1.6 KiB
Gherkin
Feature: i18n merging path trees
|
|
|
|
Scenario: Mixing localized and non-localized sources and merging the path trees (see issue #1709)
|
|
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"
|
|
|
|
When I go to "/c/d/index.html"
|
|
Then I should see "Current locale: en"
|
|
Then I should see "path: is-localized Home # c/d/index.html.erb"
|
|
|
|
When I go to "/es/c/d/index.html"
|
|
Then I should see "Current locale: es"
|
|
Then I should see "path: is-localized Home # c/d/index.html.erb"
|