[Source]
# File lib/not_a_mock/active_record_extensions.rb, line 4 4: def self.stub_instance(methods = {}) 5: @@__stub_object_id ||= 1000 6: @@__stub_object_id += 1 7: methods = methods.merge(:id => @@__stub_object_id, :to_param => @@__stub_object_id.to_s) 8: NotAMock::Stub.new(self, methods) 9: end
[Validate]