Sha256: 8a8a052961448dc87474aee3ea433af554a51feb9a44af9ddeb203079f08eb0f
Contents?: true
Size: 1013 Bytes
Versions: 6
Compression:
Stored size: 1013 Bytes
Contents
require 'simplecov' SimpleCov.start { add_filter 'test' } ENV['RAILS_ENV'] = 'test' require "mock_app/config/environment" require 'rails/test_help' require 'minitest/autorun' require 'mocha/setup' begin require 'redgreen' rescue LoadError end def load_schema stdout = $stdout $stdout = StringIO.new # suppress output while building the schema load File.join(Rails.root, 'db', 'schema.rb') $stdout = stdout end load_schema for file in %w[model_stub const_mocker company] require File.join(File.dirname(__FILE__), file) end I18n.backend.store_translations :en, YAML.load_file(File.expand_path('../../config/locales/en.yml', __FILE__))["en"] unless defined? Minitest::Test class Minitest::Test < MiniTest::Unit::TestCase end end class MiniTest::Test protected def config_for(klass, namespace = nil) ActiveScaffold::Config::Core.new("#{namespace}#{klass.to_s.underscore.downcase}") end end Object.send :remove_const, :Config class ColumnMock < ActiveScaffold::Tableless::Column; end
Version data entries
6 entries across 6 versions & 1 rubygems