From ace1b6b8d20a78d1ef78542c3d7e0a4b86961fce Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 21 Feb 2015 00:31:25 -0800 Subject: [PATCH] Migrate the integration tests to minitest, too --- features/step_definitions/jekyll_steps.rb | 4 ++-- features/support/env.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 176629f6..5e0509e1 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -27,7 +27,7 @@ After do Dir.chdir(File.dirname(TEST_DIR)) end -World(Test::Unit::Assertions) +World(Minitest::Assertions) Given /^I have a blank site in "(.*)"$/ do |path| FileUtils.mkdir_p(path) unless File.exist?(path) @@ -191,7 +191,7 @@ Then /^I should see exactly "(.*)" in "(.*)"$/ do |text, file| end 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 Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file| diff --git a/features/support/env.rb b/features/support/env.rb index e995ba9b..8f33ff63 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -1,7 +1,7 @@ require 'fileutils' require 'posix-spawn' require 'rr' -require 'test/unit' +require 'minitest/assertions' require 'time' JEKYLL_SOURCE_DIR = File.dirname(File.dirname(File.dirname(__FILE__)))