Mocking
Mocks, stubs, fakes and test fixtures. 38 packages across 8 ecosystems.
RbfakerEasily generate fake dataMITRbfactory_botfactory_bot provides a framework and DSL for defining and using model instance factories.MITRbwebmockLibrary for stubbing HTTP requests in Ruby.MITRbfactory_bot_railsfactory_bot_rails provides integration between factory_bot and Rails 6.1 or newerMITRbtimecopA gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.MITRbrspec-mocksRSpec's 'test double' framework, with support for stubbing and mockingMIT