Sha256: 89e14e1f4d66ca99b023ff3d8a6f9dddad44e765e9bfe112ae926cd6efe9eb4b
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
# -*- coding: utf-8 -*- ENV["RACK_ENV"] ||= "test" # Mongoid.load!で参照しています require 'simplecov' SimpleCov.start if ENV["COVERAGE"] $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' # require 'factory_girl' require 'tengine_resource' require 'mongoid' Mongoid.load!(File.expand_path('mongoid.yml', File.dirname(__FILE__))) Mongoid.database.connection.drop_database(Mongoid.database.name) # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} # Requires fixtures files in ./fixtures/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/fixtures/**/*.rb"].each {|f| require f} Tengine::Core::MethodTraceable.disabled = true require 'logger' log_path = File.expand_path("../tmp/log/test.log", File.dirname(__FILE__)) Tengine.logger = Logger.new(log_path) Tengine.logger.level = Logger::DEBUG Tengine::Core.stdout_logger = Logger.new(log_path) Tengine::Core.stdout_logger.level = Logger::DEBUG Tengine::Core.stderr_logger = Logger.new(log_path) Tengine::Core.stderr_logger.level = Logger::DEBUG Tengine::Core::Kernel.event_exception_reporter = :raise_all RSpec.configure do |config| # config.include Factory::Syntax::Methods end # Dir["#{File.expand_path('factories', File.dirname(__FILE__))}/**/*.rb"].each {|f| require f}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tengine_resource-0.5.13 | spec/spec_helper.rb |