module Riffer::Testing
rbs_inline: enabled
Public Instance Methods
Source
# File lib/riffer/testing.rb, line 26 def allow_deprecations(&) Riffer::Deprecation.allow(&) end
Source
# File lib/riffer/testing.rb, line 32 def reset! tracked = Riffer::Testing.registrations tracked.reverse_each do |stub, const_name| registrable = stub.superclass #: untyped registrable.unregister(stub) remove_stub_const(const_name, stub) if const_name end tracked.clear end
Source
# File lib/riffer/testing.rb, line 14 def stub_agent(name = nil, base: Riffer::Agent, &body) build_stub(name, base: base, &body) #: singleton(Riffer::Agent) end
Source
# File lib/riffer/testing.rb, line 20 def stub_tool(name = nil, base: Riffer::Tool, &body) build_stub(name, base: base, &body) #: singleton(Riffer::Tool) end