demo/test_autorun_minitest.rb in turn-0.8.2 vs demo/test_autorun_minitest.rb in turn-0.8.3
- old
+ new
@@ -1,9 +1,11 @@
require 'minitest/unit'
require 'turn'
-MiniTest::Unit.use_natural_language_case_names = true
+Turn.config do |c|
+ c.natural = true
+end
class SampleCase1 < MiniTest::Unit::TestCase
def test_sample_pass1
assert_equal(1,1)
end
@@ -13,10 +15,10 @@
def test_sample_fail1
assert_equal(1,2)
end
def test_sample_fail2
- assert_include(1,[])
+ assert_includes(1,[])
end
def test_sample_error1
raise StandardError, "Raised exception!"
end