2011-11-27 03:12:15 +01:00
|
|
|
Feature: Support content_for and yield_content helpers
|
2012-05-25 01:31:21 +02:00
|
|
|
|
|
|
|
Scenario: content_for works as expected in erb
|
|
|
|
Given the Server is running at "content-for-app"
|
|
|
|
When I go to "/content_for_erb.html"
|
|
|
|
Then I should see "In Layout: I am the yielded content erb"
|
2011-11-27 03:12:15 +01:00
|
|
|
|
|
|
|
Scenario: content_for works as expected in haml
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "content-for-app"
|
2011-11-27 03:12:15 +01:00
|
|
|
When I go to "/content_for_haml.html"
|
|
|
|
Then I should see "In Layout: I am the yielded content haml"
|
|
|
|
|
|
|
|
Scenario: content_for works as expected in slim
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "content-for-app"
|
2011-11-27 03:12:15 +01:00
|
|
|
When I go to "/content_for_slim.html"
|
|
|
|
Then I should see "In Layout: I am the yielded content slim"
|