Sha256: cfa6c7f537a4fdde8aa4aa822d2db68219d433797237635563807758f5af578a

Contents?: true

Size: 947 Bytes

Versions: 1

Compression:

Stored size: 947 Bytes

Contents

require 'bundler'
require 'test/unit'
require "shoulda-context"
require "i18n"

begin
  require 'simplecov'
  SimpleCov.start do
    add_filter "/test/"
    add_filter "/vendor/"
  end
rescue LoadError
  $stderr.puts "Simplecov is skipped"
end

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

require 'translatable'

require File.expand_path("support/active_record", File.dirname(__FILE__))
require File.expand_path("support/database_cleaner", File.dirname(__FILE__))

# Test output styling
# Turn do not want to play nicelly =(, skip it then....
require 'turn/autorun'
Turn.config do |c|
  c.format  = :pretty
  c.natural = true
end

class Test::Unit::TestCase
  include OrmSetup

  setup do
    before_setup
    ::I18n.locale = ::I18n.default_locale
  end

  teardown do
    after_teardown
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translatable-0.3.1 test/test_helper.rb