all features pass

This commit is contained in:
David Calavera 2009-04-03 23:06:30 +02:00
parent b85eb4a373
commit 556131793f
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ Feature: Site data
And I should see "Contact: email@me.com" in "_site/contact.html" And I should see "Contact: email@me.com" in "_site/contact.html"
Scenario: Use site.time variable Scenario: Use site.time variable
Given I have an "index.html" page that contains "Generated on: {{ site.time }}" Given I have an "index.html" page that contains "{{ site.time }}"
When I run jekyll When I run jekyll
Then the _site directory should exist Then the _site directory should exist
And I should see today's time in "_site/index.html" And I should see today's time in "_site/index.html"

View File

@ -109,7 +109,7 @@ Then /^the "(.*)" file should not exist$/ do |file|
end end
Then /^I should see today's time in "(.*)"$/ do |file| Then /^I should see today's time in "(.*)"$/ do |file|
assert_match Regexp.new(Time.now.to_s), File.open(file).readlines.join assert_equal Time.now.to_s, File.open(file).readlines.join.chomp
end end
Then /^I should see today's date in "(.*)"$/ do |file| Then /^I should see today's date in "(.*)"$/ do |file|