test this fix with a cucumber feature
This commit is contained in:
parent
96efa9ed06
commit
45576a39a6
|
@ -110,3 +110,14 @@ Feature: Create sites
|
||||||
When I run jekyll
|
When I run jekyll
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And I should see "SomeDirective" in "_site/.htaccess"
|
And I should see "SomeDirective" in "_site/.htaccess"
|
||||||
|
|
||||||
|
Scenario: File was replaced by a directory
|
||||||
|
Given I have a "test" file that contains "some stuff"
|
||||||
|
When I run jekyll
|
||||||
|
Then the _site directory should exist
|
||||||
|
When I delete the file "test"
|
||||||
|
Given I have a test directory
|
||||||
|
And I have a "test/index.html" file that contains "some other stuff"
|
||||||
|
When I run jekyll
|
||||||
|
Then the _site/test directory should exist
|
||||||
|
And I should see "some other stuff" in "_site/test/index.html"
|
||||||
|
|
|
@ -140,6 +140,10 @@ When /^I change "(.*)" to contain "(.*)"$/ do |file, text|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^I delete the file "(.*)"$/ do |file|
|
||||||
|
File.delete(file)
|
||||||
|
end
|
||||||
|
|
||||||
Then /^the (.*) directory should exist$/ do |dir|
|
Then /^the (.*) directory should exist$/ do |dir|
|
||||||
assert File.directory?(dir), "The directory \"#{dir}\" does not exist"
|
assert File.directory?(dir), "The directory \"#{dir}\" does not exist"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue