Skip to content
This repository
Browse code

Merge pull request #1883 from arunagw/time_zone_fix

Using not effected timezone in tests.
  • Loading branch information...
commit 31536855ae90bf2fb07c855d05837246b5aa6fb9 2 parents ff9566c + cd48bd2
Aaron Patterson authored June 28, 2011

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  activesupport/test/time_zone_test.rb
8  activesupport/test/time_zone_test.rb
@@ -224,9 +224,9 @@ def test_seconds_to_utc_offset_with_negative_offset
224 224
   end
225 225
 
226 226
   def test_formatted_offset_positive
227  
-    zone = ActiveSupport::TimeZone['Moscow']
228  
-    assert_equal "+03:00", zone.formatted_offset
229  
-    assert_equal "+0300", zone.formatted_offset(false)
  227
+    zone = ActiveSupport::TimeZone['New Delhi']
  228
+    assert_equal "+05:30", zone.formatted_offset
  229
+    assert_equal "+0530", zone.formatted_offset(false)
230 230
   end
231 231
 
232 232
   def test_formatted_offset_negative
@@ -257,7 +257,7 @@ def test_zone_match
257 257
   end
258 258
 
259 259
   def test_to_s
260  
-    assert_equal "(GMT+03:00) Moscow", ActiveSupport::TimeZone['Moscow'].to_s
  260
+    assert_equal "(GMT+05:30) New Delhi", ActiveSupport::TimeZone['New Delhi'].to_s
261 261
   end
262 262
 
263 263
   def test_all_sorted

0 notes on commit 3153685

Please sign in to comment.
Something went wrong with that request. Please try again.