Flowdock
method

unstub_object

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: SimpleStubs
unstub_object(stub) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/testing/time_helpers.rb, line 34
        def unstub_object(stub)
          singleton_class = stub.object.singleton_class
          singleton_class.send :undef_method, stub.method_name
          singleton_class.send :alias_method, stub.method_name, stub.original_method
          singleton_class.send :undef_method, stub.original_method
        end
Register or log in to add new notes.