Warp time zones in your tests.
License
pelargir/time-zone-warp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
time-zone-warp ========= If time zone support is critical to your app, it's often necessary to test various methods as if they were being run in a specific time zone. Installation ============ Gem: $ sudo gem install time-zone-warp Gem config in a Rails app. Add to test.rb: config.gem 'time-zone-warp', :lib => 'time_zone_warp' Example ======= class UserTest < Test::Unit::TestCase test "code works in other time zones" do pretend_zone_is "Mountain Time (US & Canada)" do # assertions go here end end end Copyright (c) 2009 Adeptware, Inc. Released under the MIT license.
About
Warp time zones in your tests.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published