timecop 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.rdoc +10 -0
- data/VERSION.yml +1 -1
- data/lib/timecop/time_stack_item.rb +1 -1
- data/test/time_stack_item_test.rb +5 -0
- metadata +1 -1
data/History.rdoc
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
=== 0.4.1 / 2012-07-27
|
2
|
+
|
3
|
+
* Maintenance
|
4
|
+
* Mock Time#new the same as Time#now since they're synonyms
|
5
|
+
* Set default arg in parsing to 2000
|
6
|
+
* Time.freeze defaults to Time#now
|
7
|
+
* Use Time#parse is available to parse Time's given as strings
|
8
|
+
* Add ActiveSupport Time.zone support
|
9
|
+
* Stop DateTime from losing precision after traveling
|
10
|
+
|
1
11
|
=== 0.3.5 / 2010-06-07
|
2
12
|
|
3
13
|
* Maintenance
|
data/VERSION.yml
CHANGED
@@ -165,6 +165,11 @@ class TestTimeStackItem < Test::Unit::TestCase
|
|
165
165
|
Timecop.freeze(date)
|
166
166
|
end
|
167
167
|
|
168
|
+
def test_parse_only_string_with_active_support
|
169
|
+
Time.expects(:parse).never
|
170
|
+
Timecop.freeze(2011, 01, 02, hour=0, minute=0, second=0)
|
171
|
+
end
|
172
|
+
|
168
173
|
def test_integration_with_rails_time_zone
|
169
174
|
time = Time.now
|
170
175
|
def time.in_time_zone
|