spec/spec_helper.rb in dry-web-roda-0.6.0 vs spec/spec_helper.rb in dry-web-roda-0.6.1

- old
+ new

@@ -1,24 +1,22 @@ -# encoding: utf-8 +require "byebug" -if RUBY_ENGINE == "rbx" - require "codeclimate-test-reporter" - CodeClimate::TestReporter.start -end +SPEC_ROOT = Pathname(__dir__) +TEST_APP_NAME = "test_app".freeze -begin - require 'byebug' -rescue LoadError; end +Dir[SPEC_ROOT.join("support/*.rb").to_s].each { |f| require f } -require 'pathname' -require 'rack/test' -require 'slim' +RSpec.configure do |config| + config.disable_monkey_patching! -ENV['RACK_ENV'] = 'test' + config.example_status_persistence_file_path = "spec/examples.txt" -SPEC_ROOT = Pathname(__FILE__).dirname + config.filter_run :focus + config.run_all_when_everything_filtered = true -RSpec.configure do |config| - config.disable_monkey_patching! + config.default_formatter = "doc" if config.files_to_run.one? - config.include Rack::Test::Methods, type: :request + config.profile_examples = 10 + + config.order = :random + Kernel.srand config.seed end