Skip to content

Commit

Permalink
compatibility with minitest 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yannlugrin committed May 23, 2011
1 parent 480bf9b commit fe82877
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions Rakefile
Expand Up @@ -9,11 +9,9 @@ desc 'Run all tests'
task :test do
ENV['QUIET'] ||= 'true'

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/test'))

MiniTest::Unit.autorun

test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb']
test_files = Dir['./test/**/*_spec.rb'] + Dir['./test/**/test_*.rb']
test_files.each { |f| require f }
end

Expand Down
2 changes: 1 addition & 1 deletion test/test_filesystem.rb
@@ -1,6 +1,6 @@
# encoding: utf-8

require 'test/helper'
require './test/helper'

class Nanoc3::DataSources::FilesystemTest < MiniTest::Unit::TestCase

Expand Down
4 changes: 3 additions & 1 deletion test/test_filesystem_i18n.rb
@@ -1,4 +1,6 @@
require 'helper'
# encoding: utf-8

require './test/helper'

class TestNanocFilesystemI18n < MiniTest::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion test/test_filesystem_unified.rb
@@ -1,6 +1,6 @@
# encoding: utf-8

require 'test/helper'
require './test/helper'

class Nanoc3::DataSources::FilesystemUnifiedTest < MiniTest::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion test/test_filesystem_verbose.rb
@@ -1,6 +1,6 @@
# encoding: utf-8

require 'test/helper'
require './test/helper'

class Nanoc3::DataSources::FilesystemVerboseTest < MiniTest::Unit::TestCase

Expand Down

0 comments on commit fe82877

Please sign in to comment.