Method: ActiveSupport::Testing::SimpleStubs#stubbing
- Defined in:
- lib/active_support/testing/time_helpers.rb
#stubbing(object, method_name) ⇒ Object
Returns the Stub for object#method_name (nil if it is not stubbed)
48 49 50 |
# File 'lib/active_support/testing/time_helpers.rb', line 48 def stubbing(object, method_name) @stubs[object.object_id][method_name] end |