From 556131793fdde439d58b277cca43cfe843b42d94 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 3 Apr 2009 23:06:30 +0200 Subject: [PATCH] all features pass --- features/site_data.feature | 2 +- features/step_definitions/jekyll_steps.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/site_data.feature b/features/site_data.feature index a5927675..d9d5c775 100644 --- a/features/site_data.feature +++ b/features/site_data.feature @@ -10,7 +10,7 @@ Feature: Site data And I should see "Contact: email@me.com" in "_site/contact.html" 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 Then the _site directory should exist And I should see today's time in "_site/index.html" diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index bb8dbbea..d71812ad 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -109,7 +109,7 @@ Then /^the "(.*)" file should not exist$/ do |file| end 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 Then /^I should see today's date in "(.*)"$/ do |file|