Migrate the integration tests to minitest, too

This commit is contained in:
Parker Moore 2015-02-21 00:31:25 -08:00
parent 52c4ce2a5a
commit ace1b6b8d2
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ After do
Dir.chdir(File.dirname(TEST_DIR)) Dir.chdir(File.dirname(TEST_DIR))
end end
World(Test::Unit::Assertions) World(Minitest::Assertions)
Given /^I have a blank site in "(.*)"$/ do |path| Given /^I have a blank site in "(.*)"$/ do |path|
FileUtils.mkdir_p(path) unless File.exist?(path) FileUtils.mkdir_p(path) unless File.exist?(path)
@ -191,7 +191,7 @@ Then /^I should see exactly "(.*)" in "(.*)"$/ do |text, file|
end end
Then /^I should not see "(.*)" in "(.*)"$/ do |text, file| Then /^I should not see "(.*)" in "(.*)"$/ do |text, file|
assert_no_match Regexp.new(text, Regexp::MULTILINE), file_contents(file) refute_match Regexp.new(text, Regexp::MULTILINE), file_contents(file)
end end
Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file| Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file|

View File

@ -1,7 +1,7 @@
require 'fileutils' require 'fileutils'
require 'posix-spawn' require 'posix-spawn'
require 'rr' require 'rr'
require 'test/unit' require 'minitest/assertions'
require 'time' require 'time'
JEKYLL_SOURCE_DIR = File.dirname(File.dirname(File.dirname(__FILE__))) JEKYLL_SOURCE_DIR = File.dirname(File.dirname(File.dirname(__FILE__)))