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: 6 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,420
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,334
rubocop/rubocop An automated code quality tool for Ruby programming language 12,664
temporalio/temporal A platform for building durable and scalable workflow automation applications. 12,326
davedelong/time A Swift package that simplifies date and time calculations by providing a robust and type-safe API 2,329
matthewyork/datetools A collection of classes and utilities for working with dates and times in iOS. 7,224
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,173
jmettraux/rufus-scheduler A job scheduling library for Ruby that supports various scheduling methods and executes jobs in a thread-based manner. 2,414
mojombo/chronic A natural language date parser written in pure Ruby. 3,243
mlipper/runt Enables developers to define and compare temporal patterns of date recurrence in Ruby 125
ruby-concurrency/concurrent-ruby A modern concurrency library for Ruby providing tools and abstractions for writing concurrent code safely and efficiently. 5,711