Class: RSpec::Core::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/maybes/configuration.rb

Instance Method Summary collapse

Instance Method Details

#conditionally_disable_expectations_monkey_patchingObject


6
7
8
9
10
# File 'lib/rspec/maybes/configuration.rb', line 6

def conditionally_disable_expectations_monkey_patching
  return unless disable_monkey_patching && rspec_expectations_loaded?

  RSpec::Expectations.configuration.syntax = :maybe
end