12 step program to awesome integration tests
This commit is contained in:
parent
778894dc6b
commit
6c41f93493
|
@ -23,7 +23,7 @@ Feature: Create sites
|
|||
Scenario: Basic site with layout and a page
|
||||
Given I have a blank site
|
||||
And I have a _layouts directory
|
||||
And I have an "index.html" file with a "default" layout that contains "Basic Site with Layout"
|
||||
And I have an "index.html" file with layout "default" that contains "Basic Site with Layout"
|
||||
And I have a default layout that contains "Page Layout: {{ content }}"
|
||||
When I run jekyll
|
||||
Then the _site directory should exist
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
Given /^I have a blank site$/ do
|
||||
Given /^I have a blank site(?: in (.*))?$/ do |dir|
|
||||
pending
|
||||
end
|
||||
|
||||
Given /^I have an "(.*)" file( with a "(.*)" layout)? that contains "(.*)"$/ do |file, layout, text|
|
||||
Given /^I have an "(.*)" file( with (.*) "(.*)")? that contains "(.*)"$/ do |file, key, value, text|
|
||||
pending
|
||||
end
|
||||
|
||||
|
@ -14,7 +14,11 @@ Given /^I have a (.*) directory$/ do |dir|
|
|||
pending
|
||||
end
|
||||
|
||||
Given /^I have the following post:$/ do |table|
|
||||
Given /^I have the following posts?(?: in "(.*)")?:$/ do |table, dir|
|
||||
pending
|
||||
end
|
||||
|
||||
Given /^I have a configuration file(?: in "(.*)")? with "(.*)" set to "(.*)"$/ do |dir, key, value|
|
||||
pending
|
||||
end
|
||||
|
||||
|
@ -22,10 +26,23 @@ When /^I run jekyll$/ do
|
|||
pending
|
||||
end
|
||||
|
||||
When /^I change "(.*)" to contain "(.*)"$/ do |file, text|
|
||||
pending
|
||||
end
|
||||
|
||||
When /^I go to "(.*)"$/ do |address|
|
||||
pending
|
||||
end
|
||||
|
||||
Then /^the (.*) directory should exist$/ do |dir|
|
||||
pending
|
||||
end
|
||||
|
||||
Then /^I should see "(.*)" in "(.*)"$/ do |text, file|
|
||||
Then /^I should see "(.*)"(?: in "(.*)")?$/ do |text, file|
|
||||
pending
|
||||
end
|
||||
|
||||
Then /^the "(.*)" file should not exist$/ do |file|
|
||||
pending
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue