Sha256: 4c0acbce89f1e7a6660779ae2201fdcd1209811dea0092e3de358948186b71d6

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

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) }


# 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)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seatbelt-0.3.0 test/test_helper.rb