module Adequack::Integration::RSpecHelpers

Public Class Methods

deprecation_warning(old_method, new_method) click to toggle source
# File lib/adequack/integration/rspec_setup.rb, line 17
def deprecation_warning(old_method, new_method)
  warning = "DEPRECATION: '#{old_method}' is deprecated."\
            " Please use `#{new_method}` instead."

  warn warning
end

Public Instance Methods

adequack_double(object, interface) click to toggle source
# File lib/adequack/integration/rspec_setup.rb, line 10
def adequack_double(object, interface)
  Adequack::Integration::RSpecHelpers.
    deprecation_warning("adequack_double", "behavioral_double")
  Adequack.double object, interface
end
behavioral_double(object, *interface) click to toggle source
# File lib/adequack/integration/rspec_setup.rb, line 6
def behavioral_double(object, *interface)
  Adequack.double object, interface
end