Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Using not effected timezone in tests.
  • Loading branch information
arunagw authored and tenderlove committed Jun 28, 2011
1 parent 4cee360 commit 23f7dad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activesupport/test/time_zone_test.rb
Expand Up @@ -224,9 +224,9 @@ def test_seconds_to_utc_offset_with_negative_offset
end

def test_formatted_offset_positive
zone = ActiveSupport::TimeZone['Moscow']
assert_equal "+03:00", zone.formatted_offset
assert_equal "+0300", zone.formatted_offset(false)
zone = ActiveSupport::TimeZone['New Delhi']
assert_equal "+05:30", zone.formatted_offset
assert_equal "+0530", zone.formatted_offset(false)
end

def test_formatted_offset_negative
Expand Down Expand Up @@ -257,7 +257,7 @@ def test_zone_match
end

def test_to_s
assert_equal "(GMT+03:00) Moscow", ActiveSupport::TimeZone['Moscow'].to_s
assert_equal "(GMT+05:30) New Delhi", ActiveSupport::TimeZone['New Delhi'].to_s
end

def test_all_sorted
Expand Down

3 comments on commit 23f7dad

@vijaydev
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this commit do?

@arunagw
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vijaydev I have added little description here in pull request

#1883

@vijaydev
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have seen the PR before asking. Thanks :)

Please sign in to comment.