Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> ruby >> ruby-timecop
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: ruby-timecop  ]

软件包: ruby-timecop (0.9.1-1)

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.

其他与 ruby-timecop 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: ruby
    Interpreter of object-oriented scripting language Ruby (default version)
    或者 ruby-interpreter
    软件包暂时不可用

下载 ruby-timecop

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 10.0 kB38 kB [文件列表]