Feature: Jekyll responsive-image tag As a Jekyll template developer I want to include responsive images in my page In order to best cater for devices of all sizes Scenario: Simple image tag Given I have a responsive_image configuration with: """ template: _includes/responsive-image.html """ And I have a file "index.html" with: """ {% responsive_image path: assets/test.png alt: Foobar %} """ When I run Jekyll Then I should see "\"Foobar\"" in "_site/index.html" Scenario: UTF-8 alt attribute Given I have a responsive_image configuration with: """ template: _includes/responsive-image.html """ And I have a file "index.html" with: """ {% responsive_image path: assets/test.png alt: "かっこいい! ジェケルが好きです!" %} """ When I run Jekyll Then I should see "\"かっこいい!" in "_site/index.html" Scenario: Image with multiple sizes Given I have a responsive_image configuration with: """ template: _includes/responsive-image.html sizes: - width: 100 - width: 200 """ And I have a file "index.html" with: """ {% responsive_image path: assets/test.png %} """ When I run Jekyll Then I should see "