todas as opções
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Fonte: ruby-timecop  ]

Pacote: ruby-timecop (0.9.10-1.1)

Links para ruby-timecop

Screenshot

Recursos de Debian:

Baixe o pacote-fonte ruby-timecop:

Mantenedores(as):

Fontes externas:

Pacotes similares:

Ruby library to easily test time-dependent code

Timecop makes it easy to travel through or freeze time for creating a predictable and ultimately testable scenario.

It is a wrapper class for manipulating the extensions to the Time, Date, and DateTime objects. It avoids overloading of functions with optional arguments while writing test cases. It is possible to nest multiple calls to Timecop.travel and Timecop.freeze, with each block maintaining concept of "now". Having no dependencies, it works with regular Ruby projects and Ruby on Rails projects.

Download de ruby-timecop

Baixe para todas as arquiteturas disponíveis
Arquitetura Tamanho do pacote Tamanho instalado Arquivos
all 11.9 kB45.0 kB [lista de arquivos]