From c07dbb3f98cc56f9c8a2f48a66c6c8b9190a88ab Mon Sep 17 00:00:00 2001 From: Mario Visic Date: Thu, 2 Jun 2011 21:36:03 +0800 Subject: [PATCH] Cleaned up the snippet feature. --- features/admin/snippets.feature | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/features/admin/snippets.feature b/features/admin/snippets.feature index 84c30a3b..b304bd96 100644 --- a/features/admin/snippets.feature +++ b/features/admin/snippets.feature @@ -6,20 +6,23 @@ Feature: Snippets Background: Given I have the site: "test site" set up And I am an authenticated user - And a snippet named "yield" with the template: - """ - HELLO WORLD ! - """ + And a page named "home" with the template: + """ + {% include 'yield' %} + """ + And a snippet named "yield" with the template: + """ + "yield" + """ + And a snippet named "other" with the template: + """ + "other" + """ Scenario: Updating a Snippet that includes another snippet - And a page named "snippet-test" with the template: - """ - {% include 'yield' %} - """ When I go to theme assets And I follow "yield" And I fill in "snippet_template" with "{% include 'other' %}" And I press "Update" Then I should see "Snippet was successfully updated." And I should have "{% include 'other' %}" in the yield snippet - Then show me the page