spec/spec_helper.rb in ProtectedConstructor-2.0.0 vs spec/spec_helper.rb in ProtectedConstructor-2.0.3

- old
+ new

@@ -1,14 +1,22 @@ -require 'klass' -require 'klass_factory' +# frozen_string_literal: true + +require 'pry-byebug' require_relative '../lib/ProtectedConstructor' -# Use :should in stead of :expect +Dir[File.join(Dir.pwd, 'spec/support/**/*.rb')].sort.each { |f| require f } + RSpec.configure do |config| + # Enable flags like --only-failures and --next-failure + config.example_status_persistence_file_path = '.rspec_status' + + # Disable RSpec exposing methods globally on `Module` and `main` + # config.disable_monkey_patching! + config.expect_with :rspec do |c| - c.syntax = :should + c.syntax = :expect end + config.mock_with :rspec do |c| - c.syntax = :should + c.syntax = :expect end - #config.raise_errors_for_deprecations! -end \ No newline at end of file +end