all features pass
This commit is contained in:
parent
b85eb4a373
commit
556131793f
|
@ -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"
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue