Merge branch 'v3-stable' into feature/chained_templates_partials
Conflicts: middleman-core/lib/middleman-core/core_extensions/rendering.rb
This commit is contained in:
commit
98a36d68f0
19 changed files with 128 additions and 35 deletions
23
middleman-core/features/i18n_partials.feature
Normal file
23
middleman-core/features/i18n_partials.feature
Normal file
|
@ -0,0 +1,23 @@
|
|||
Feature: i18n Partials
|
||||
|
||||
Scenario: Running localize with the default config
|
||||
Given a fixture app "i18n-test-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
activate :i18n
|
||||
"""
|
||||
Given the Server is running at "i18n-test-app"
|
||||
When I go to "/partials/index.html"
|
||||
Then I should see "Country: USA"
|
||||
Then I should see "State: District of Columbia"
|
||||
Then I should see "Greeting: Hello"
|
||||
Then I should see "Site: Locale Site"
|
||||
Then I should see "Flag: stars"
|
||||
Then I should see "President: obama"
|
||||
When I go to "/es/partials/index.html"
|
||||
Then I should see "Country: Mexico"
|
||||
Then I should see "State: Distrito Federal"
|
||||
Then I should see "Greeting: Hola"
|
||||
Then I should see "Site: Locale Site"
|
||||
Then I should see "Flag: bars"
|
||||
Then I should see "President: nieto"
|
|
@ -49,3 +49,9 @@ Feature: Provide Sane Defaults for Partial Behavior
|
|||
Given the Server is running at "partials-app"
|
||||
When I go to "/svg.html"
|
||||
Then I should see "<svg"
|
||||
When I go to "/static_underscore.html"
|
||||
Then I should see "<p>Hello World</p>"
|
||||
When I go to "/code_snippet.html"
|
||||
Then I should see "File Not Found"
|
||||
When I go to "/_code_snippet.html"
|
||||
Then I should see "File Not Found"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue