Permalink
Browse files

These methods are not part of the public API.

  • Loading branch information...
1 parent 44b464e commit f96edc3c4db2f06703d9e1d97f2507c25d1145e8 @myronmarston myronmarston committed Sep 10, 2013
Showing with 4 additions and 0 deletions.
  1. +2 −0 lib/rspec/mocks/configuration.rb
  2. +2 −0 lib/rspec/mocks/syntax.rb
@@ -82,6 +82,8 @@ def transfer_nested_constants=(val)
@transfer_nested_constants = val
end
+ # @api private
+ # Resets the configured syntax to the default.
def reset_syntaxes_to_default
self.syntax = [:should, :expect]
RSpec::Mocks::Syntax.warn_about_should!
@@ -4,10 +4,12 @@ module Mocks
# Provides methods for enabling and disabling the available syntaxes
# provided by rspec-mocks.
module Syntax
+ # @api private
def self.warn_about_should!
@warn_about_should = true
end
+ # @api private
def self.warn_unless_should_configured(method_name)
if @warn_about_should
RSpec.deprecate(

0 comments on commit f96edc3

Please sign in to comment.