spec/spec_helper.rb in brcobranca-5.0.0 vs spec/spec_helper.rb in brcobranca-5.0.1

- old
+ new

@@ -6,11 +6,34 @@ CodeClimate::TestReporter.start $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' +require 'timecop' require 'pry' require 'tempfile' require 'brcobranca' require 'rghost' + +# Requires supporting files with custom matchers and macros, etc, +# in ./support/ and its subdirectories. +Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } + +RSpec.configure do |config| + config.disable_monkey_patching! + config.order = :random + Kernel.srand config.seed + config.filter_run focus: true + config.run_all_when_everything_filtered = true + config.expect_with :rspec do |expectations| + expectations.syntax = :expect + end + config.mock_with :rspec do |mocks| + mocks.syntax = :expect + mocks.verify_partial_doubles = true + end + if config.files_to_run.one? + config.default_formatter = 'doc' + end +end RGhost::Config.config_platform