Pin minitest and mocha, stop using the deprecated
MiniTest::Unit::TestCase constant.
This commit is contained in:
John Barnette 2013-10-06 09:30:12 -06:00
Родитель 16dc70cd46
Коммит f4fc9c5b25
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -12,6 +12,6 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep /^test/
gem.require_paths = ["lib"]
gem.add_development_dependency "minitest"
gem.add_development_dependency "mocha"
gem.add_development_dependency "minitest", "~> 5.0.8"
gem.add_development_dependency "mocha", "~> 0.14.0"
end

Просмотреть файл

@ -1,7 +1,7 @@
require "minitest/autorun"
require "dat/science/experiment"
class DatScienceExperimentTest < MiniTest::Unit::TestCase
class DatScienceExperimentTest < MiniTest::Test
class Experiment < Dat::Science::Experiment
def self.published
@published ||= []

Просмотреть файл

@ -2,7 +2,7 @@ require "minitest/autorun"
require "mocha/setup"
require "dat/science"
class DatScienceTest < MiniTest::Unit::TestCase
class DatScienceTest < MiniTest::Test
def teardown
Dat::Science.reset
end