diff --git a/features/responsive-image-tag.feature b/features/responsive-image-tag.feature index ddad2f9..8173a42 100644 --- a/features/responsive-image-tag.feature +++ b/features/responsive-image-tag.feature @@ -57,13 +57,13 @@ Feature: Jekyll responsive_image tag """ template: _includes/responsive-image.html sizes: + - width: 50 - width: 100 - - width: 200 - - width: 300 + - width: 150 """ And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeƱo-pineapple-cornbread.png template: _includes/custom-template.html %}" When I run Jekyll - Then I should see "[100, 200, 300]" in "_site/index.html" + Then I should see "[50, 100, 150]" in "_site/index.html" Scenario: Overriding the generated filenames Given I have a responsive_image configuration with: diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 7284284..5ca4529 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -39,7 +39,8 @@ Given /^I have a file "(.+)" with "(.+)"$/ do |path, contents| end Then /^I should see "(.+)" in "(.*)"$/ do |text, file| - assert_match(Regexp.new(text), File.open(file).readlines.join) + contents = File.open(file).readlines.join + assert contents.inspect.include?(text), "Expected to find #{text.inspect} in #{contents.inspect}" end Then /^the file "(.+)" should exist$/ do |path|