tests for data in config.rb, closes #118

This commit is contained in:
Thomas Reynolds 2011-09-17 12:43:31 -07:00
parent e125fc67b3
commit 41df43092d
5 changed files with 24 additions and 1 deletions

View file

@ -14,4 +14,14 @@ Feature: Local Data API
Scenario: Rendering liquid
Given the Server is running at "test-app"
When I go to "/data2.html"
Then I should see "OneTwo"
Then I should see "OneTwo"
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"
Scenario: Using data2 in config.rb
Given the Server is running at "data-app"
When I go to "/test2.html"
Then I should see "Welcome"

View file

@ -0,0 +1,3 @@
data.pages.each do |p|
page p.from, :proxy => p.to
end

View file

@ -0,0 +1,6 @@
-
from: "/test1.html"
to: "/index.html"
-
from: "/test2.html"
to: "/index.html"

View file

@ -0,0 +1 @@
%h1 Welcome

View file

@ -0,0 +1,3 @@
%html
%body
= yield