test/test_helper.rb in seatbelt-0.1.1 vs test/test_helper.rb in seatbelt-0.2.0

- old
+ new

@@ -1,17 +1,21 @@ -require 'rubygems' -require 'test/unit' +require 'minitest/autorun' +require 'turn/autorun' require 'active_support' require 'action_mailer' require 'json' +require 'mocha/setup' $:.push File.expand_path("../../lib", __FILE__) require File.dirname(__FILE__) + '/../lib/seatbelt.rb' # Requiring custom spec helpers Dir[File.dirname(__FILE__) + "/helpers/**/*.rb"].sort.each { |f| require File.expand_path(f) } -class Test::Unit::TestCase + +Turn.config.format = :dot + +class Minitest::Unit::TestCase def assert_assertion_fails(&block) if Object.const_defined?(:MiniTest) assert_raises(MiniTest::Assertion, &block) else assert_raises(Test::Unit::AssertionFailedError, &block)