More test improvements
This commit is contained in:
parent
b47f12a1db
commit
6d569710b9
|
@ -1,5 +1,3 @@
|
||||||
include Test::Unit::Assertions
|
|
||||||
|
|
||||||
When /^I run Jekyll$/ do
|
When /^I run Jekyll$/ do
|
||||||
run_jekyll
|
run_jekyll
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,7 +3,7 @@ if ENV['CI']
|
||||||
Coveralls.wear!
|
Coveralls.wear!
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'test/unit'
|
require 'test/unit/assertions'
|
||||||
require 'jekyll/responsive_image'
|
require 'jekyll/responsive_image'
|
||||||
|
|
||||||
TEST_DIR = File.join('/', 'tmp', 'jekyll')
|
TEST_DIR = File.join('/', 'tmp', 'jekyll')
|
||||||
|
@ -14,3 +14,5 @@ def run_jekyll(options = {})
|
||||||
site = Jekyll::Site.new(options)
|
site = Jekyll::Site.new(options)
|
||||||
site.process
|
site.process
|
||||||
end
|
end
|
||||||
|
|
||||||
|
World(Test::Unit::Assertions)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<img src="{{ site.baseurl }}/{{ path }}">
|
<img src="{{ site.baseurl }}/{{ original.path }}">
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue