method

stub_any_instance

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: MethodCallAssertions
stub_any_instance(klass, instance: klass.new) 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/method_call_assertions.rb, line 65
        def stub_any_instance(klass, instance: klass.new)
          klass.stub(:new, instance) { yield instance }
        end
Register or log in to add new notes.