spec/helpers.rb in schedulability-0.4.1 vs spec/helpers.rb in schedulability-0.5.0

- old
+ new

@@ -1,8 +1,8 @@ #!/usr/bin/env ruby # vim: set nosta noet ts=4 sw=4: -# encoding: utf-8 +# frozen_string_literal: true BEGIN { require 'pathname' basedir = Pathname.new( __FILE__ ).dirname.parent @@ -28,19 +28,25 @@ module Schedulability::SpecHelpers end # module Schedulability::SpecHelpers ### Mock with RSpec -RSpec.configure do |c| - c.run_all_when_everything_filtered = true - c.filter_run :focus - c.order = 'random' - c.warnings = true +RSpec.configure do |config| - c.mock_with( :rspec ) do |mock| + config.mock_with( :rspec ) do |mock| mock.syntax = :expect end - c.include( Loggability::SpecHelpers ) - c.include( Schedulability::SpecHelpers ) + config.disable_monkey_patching! + config.example_status_persistence_file_path = "spec/.status" + config.filter_run :focus + config.filter_run_when_matching :focus + config.order = :random + config.profile_examples = 5 + config.run_all_when_everything_filtered = true + config.shared_context_metadata_behavior = :apply_to_host_groups + config.warnings = true + + config.include( Loggability::SpecHelpers ) + config.include( Schedulability::SpecHelpers ) end