Merge pull request #3678 from jekyll/minitest-5-6
Merge pull request 3678
This commit is contained in:
		
						commit
						d3e867d4a0
					
				|  | @ -27,7 +27,9 @@ After do | ||||||
|   Dir.chdir(File.dirname(TEST_DIR)) |   Dir.chdir(File.dirname(TEST_DIR)) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| World(Minitest::Assertions) | World do | ||||||
|  |   MinitestWorld.new | ||||||
|  | end | ||||||
| 
 | 
 | ||||||
| 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) | ||||||
|  |  | ||||||
|  | @ -1,8 +1,17 @@ | ||||||
| require 'fileutils' | require 'fileutils' | ||||||
| require 'posix-spawn' | require 'posix-spawn' | ||||||
| require 'minitest/assertions' | require 'minitest/spec' | ||||||
| require 'time' | require 'time' | ||||||
| 
 | 
 | ||||||
|  | class MinitestWorld | ||||||
|  |   extend Minitest::Assertions | ||||||
|  |   attr_accessor :assertions | ||||||
|  | 
 | ||||||
|  |   def initialize | ||||||
|  |     self.assertions = 0 | ||||||
|  |   end | ||||||
|  | end | ||||||
|  | 
 | ||||||
| JEKYLL_SOURCE_DIR = File.dirname(File.dirname(File.dirname(__FILE__))) | JEKYLL_SOURCE_DIR = File.dirname(File.dirname(File.dirname(__FILE__))) | ||||||
| TEST_DIR    = File.expand_path(File.join('..', '..', 'tmp', 'jekyll'), File.dirname(__FILE__)) | TEST_DIR    = File.expand_path(File.join('..', '..', 'tmp', 'jekyll'), File.dirname(__FILE__)) | ||||||
| JEKYLL_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'jekyll')) | JEKYLL_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'jekyll')) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue