diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-11-18 14:19:28 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-11-18 14:19:28 +1100 |
commit | 1bb497b5373698946d9e353ba37e537f7e142d8c (patch) | |
tree | b64dc506da87938ebae98856b1fa2fe5e634cb95 /spec/helpers/link_to_helper_spec.rb | |
parent | 685938f1d736c54663011274ca563ba94d0e49b0 (diff) |
Make simple_date respect the time zone
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
-rw-r--r-- | spec/helpers/link_to_helper_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb index ef89e8bf9..a771a431c 100644 --- a/spec/helpers/link_to_helper_spec.rb +++ b/spec/helpers/link_to_helper_spec.rb @@ -73,4 +73,12 @@ describe LinkToHelper do end end end + + describe 'simple_date' do + it 'should respect time zones' do + Time.use_zone('Australia/Sydney') do + simple_date(Time.utc(2012, 11, 07, 21, 30, 26)).should == 'November 08, 2012' + end + end + end end |