More test improvements

This commit is contained in:
Joseph Wynn 2016-09-27 23:48:24 +01:00
parent b47f12a1db
commit 6d569710b9
4 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,3 @@
include Test::Unit::Assertions
When /^I run Jekyll$/ do
run_jekyll
end

View File

@ -3,7 +3,7 @@ if ENV['CI']
Coveralls.wear!
end
require 'test/unit'
require 'test/unit/assertions'
require 'jekyll/responsive_image'
TEST_DIR = File.join('/', 'tmp', 'jekyll')
@ -14,3 +14,5 @@ def run_jekyll(options = {})
site = Jekyll::Site.new(options)
site.process
end
World(Test::Unit::Assertions)

View File

@ -1 +1 @@
<img src="{{ site.baseurl }}/{{ path }}">
<img src="{{ site.baseurl }}/{{ original.path }}">

View File

@ -1 +1 @@
<img alt="{{ alt }}" src="/{{ path }}" title="{{ title }}" srcset="{% for i in resized %}/{{ i.path }} {{ i.width }}w,{% endfor %}/{{ original.path }} {{ original.width }}w">
<img alt="{{ alt }}" src="/{{ original.path }}" title="{{ title }}" srcset="{% for i in resized %}/{{ i.path }} {{ i.width }}w,{% endfor %}/{{ original.path }} {{ original.width }}w">