Sha256: 71d9959395be7dc1d6caf4938a75cfd9042e48e4613e1051f71da178a92fd1c0
Contents?: true
Size: 767 Bytes
Versions: 7
Compression:
Stored size: 767 Bytes
Contents
require 'sinatra' require 'minitest/autorun' require 'minitest/reporters' reporter_setting = ENV.fetch('REPORTER', 'progress') camel_case = reporter_setting.split(/_/).map { |word| word.capitalize }.join('') Minitest::Reporters.use! Minitest::Reporters.const_get("#{camel_case}Reporter").new require File.expand_path('../lib/nesta/env', File.dirname(__FILE__)) require File.expand_path('../lib/nesta/app', File.dirname(__FILE__)) require_relative 'support/model_factory' require_relative 'support/temporary_files' require_relative 'support/test_configuration' Nesta::App.environment = 'test' class Minitest::Test def with_app_root(path, &block) original, Nesta::App.root = Nesta::App.root, path yield ensure Nesta::App.root = original end end
Version data entries
7 entries across 7 versions & 1 rubygems