Sha256: 01cd58241e470d18ca8cefe6b231fbf069d4ccb644a5bc7f8a53f3f911b75a1b
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require "simplecov" SimpleCov.start if ENV["COVERAGE"] require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) require "rails/test_help" require "minitest/autorun" require 'mocha/minitest' old_verbose, $VERBOSE = $VERBOSE, nil require "pdf-reader" $VERBOSE = old_verbose require "minitest/reporters" Minitest::Reporters.use! # Filter out Minitest backtrace while allowing backtrace from other libraries # to be shown. Minitest.backtrace_filter = Minitest::BacktraceFilter.new # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path ActiveSupport::TestCase.fixtures :all end class MockLogger def clear @messages = {} end def messages @messages ||= {} end def info(msg) msgs = (messages[:info] || Array.new) << msg @messages[:info] = msgs end def error(msg) end end def test_logger @logger ||= MockLogger.new end def data_path File.join(__dir__, "testdata") end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
latexpdf-0.6.1 | test/test_helper.rb |
latexpdf-0.6.0 | test/test_helper.rb |
latexpdf-0.5.1 | test/test_helper.rb |
latexpdf-0.5.0 | test/test_helper.rb |