aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/link_to_helper_spec.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2012-11-18 14:19:28 +1100
committerHenare Degan <henare.degan@gmail.com>2012-11-18 14:19:28 +1100
commit1bb497b5373698946d9e353ba37e537f7e142d8c (patch)
treeb64dc506da87938ebae98856b1fa2fe5e634cb95 /spec/helpers/link_to_helper_spec.rb
parent685938f1d736c54663011274ca563ba94d0e49b0 (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.rb8
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