2011-07-06 13:29:07 -04:00
|
|
|
Feature: Local Data API
|
|
|
|
In order to abstract content from structure
|
|
|
|
|
2011-07-07 01:56:20 -04:00
|
|
|
Scenario: Rendering html
|
2011-12-29 18:09:51 -05:00
|
|
|
Given the Server is running at "basic-data-app"
|
2011-07-06 13:29:07 -04:00
|
|
|
When I go to "/data.html"
|
2011-09-06 14:12:20 -04:00
|
|
|
Then I should see "One:Two"
|
2013-03-23 04:13:05 -04:00
|
|
|
|
2011-09-12 13:20:34 -04:00
|
|
|
Scenario: Rendering json
|
2011-12-29 18:09:51 -05:00
|
|
|
Given the Server is running at "basic-data-app"
|
2011-09-12 13:20:34 -04:00
|
|
|
When I go to "/data3.html"
|
|
|
|
Then I should see "One:Two"
|
2013-03-23 04:13:05 -04:00
|
|
|
|
2011-09-17 15:43:31 -04:00
|
|
|
Scenario: Using data in config.rb
|
|
|
|
Given the Server is running at "data-app"
|
|
|
|
When I go to "/test1.html"
|
|
|
|
Then I should see "Welcome"
|
2013-03-23 04:13:05 -04:00
|
|
|
|
2011-09-17 15:43:31 -04:00
|
|
|
Scenario: Using data2 in config.rb
|
|
|
|
Given the Server is running at "data-app"
|
|
|
|
When I go to "/test2.html"
|
2013-03-23 04:13:05 -04:00
|
|
|
Then I should see "Welcome"
|
|
|
|
|
|
|
|
Scenario: Using nested data
|
|
|
|
Given the Server is running at "nested-data-app"
|
|
|
|
When I go to "/test.html"
|
|
|
|
Then I should see "test:Hello"
|