2011-11-30 01:26:01 -05:00
|
|
|
Feature: Preview Changes
|
|
|
|
In order to run quickly, we should update internal caches on file changes
|
|
|
|
|
|
|
|
Scenario: A template changes contents during preview
|
|
|
|
Given the Server is running at "preview-app"
|
|
|
|
And the file "source/content.html.erb" has the contents
|
|
|
|
"""
|
|
|
|
Hello World
|
|
|
|
"""
|
|
|
|
When I go to "/content.html"
|
|
|
|
Then I should see "Hello World"
|
|
|
|
And the file "source/content.html.erb" has the contents
|
|
|
|
"""
|
|
|
|
Hola Mundo
|
|
|
|
"""
|
|
|
|
When I go to "/content.html"
|
|
|
|
Then I should see "Hola Mundo"
|
2011-12-31 15:56:17 -05:00
|
|
|
|
|
|
|
Scenario: A template is removed during preview
|
|
|
|
Given the Server is running at "preview-app"
|
|
|
|
And the file "source/a-page.html.erb" has the contents
|
|
|
|
"""
|
|
|
|
Hello World
|
|
|
|
"""
|
|
|
|
When I go to "/a-page.html"
|
|
|
|
Then I should see "Hello World"
|
|
|
|
And the file "source/a-page.html.erb" is removed
|
|
|
|
When I go to "/a-page.html"
|
|
|
|
Then I should see "File Not Found"
|