timecop

time mocking library

Provides a unified method to mock time-dependent code

A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.

GitHub

3k stars
32 watching
225 forks
Language: Ruby
last commit: 3 months ago
Linked from 3 awesome lists

railsrubytesttime

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
ferndopolis/timecop-console Tools for manipulating time in a Rails application during development and QA 58
crystal-community/timecop.cr A testing library that allows manipulating time in tests 19
ice-cube-ruby/ice_cube A Ruby library for creating and managing recurring schedules 2,411
brandonhilkert/sucker_punch An asynchronous processing library that allows developers to run background jobs within the same process as their web application. 2,643
hustcc/timeago.js A lightweight library for formatting dates with time ago statements and automatic rendering on web pages. 5,325
rubocop/rubocop Analyzes and enforces code quality and style in Ruby projects 12,650
temporalio/temporal A platform for building durable and scalable workflow automation applications. 12,031
davedelong/time A Swift package that simplifies date and time calculations by providing a robust and type-safe API 2,322
matthewyork/datetools A collection of classes and utilities for working with dates and times in iOS. 7,221
vtopc/epoch Converts Unix timestamps to native Go time types and vice versa for JSON serialization. 14
grosser/parallel Parallel processing made simple and fast in Ruby 4,168
jmettraux/rufus-scheduler A job scheduling library for Ruby that supports various scheduling methods and executes jobs in a thread-based manner. 2,413
mojombo/chronic A natural language date parser written in pure Ruby. 3,244
mlipper/runt A Ruby implementation of temporal patterns for scheduling and timing 123
ruby-concurrency/concurrent-ruby A modern concurrency library for Ruby providing tools and abstractions for writing concurrent code safely and efficiently. 5,707