Module: Adequack::Integration::RSpecHelpers
- Defined in:
- lib/adequack/integration/rspec_setup.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.deprecation_warning(old_method, new_method) ⇒ Object
17 18 19 20 21 22 |
# 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 |
Instance Method Details
#adequack_double(object, interface) ⇒ Object
10 11 12 13 14 |
# 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) ⇒ Object
6 7 8 |
# File 'lib/adequack/integration/rspec_setup.rb', line 6 def behavioral_double(object, *interface) Adequack.double object, interface end |