timecop 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/timecop/time_stack_item.rb +1 -1
- data/lib/timecop/version.rb +1 -1
- data/test/time_stack_item_test.rb +8 -0
- metadata +2 -2
data/lib/timecop/version.rb
CHANGED
@@ -248,6 +248,14 @@ class TestTimeStackItem < Test::Unit::TestCase
|
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
251
|
+
def test_time_zone_returns_nil
|
252
|
+
c = class << Time; self end
|
253
|
+
c.send(:define_method, :zone) { nil }
|
254
|
+
assert_nothing_raised do
|
255
|
+
Timecop.freeze
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
251
259
|
def test_nsecs_are_set
|
252
260
|
time = Time.now
|
253
261
|
Timecop.freeze time
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timecop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: A gem providing "time travel" and "time freezing" capabilities, making
|
16
16
|
it dead simple to test time-dependent code. It provides a unified method to mock
|