Skip to content

pelargir/time-zone-warp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages