aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-01-15 15:19:05 +0000
committerLouise Crow <louise.crow@gmail.com>2013-01-15 15:19:05 +0000
commit5f3418307d6087f848eb1fdbf4531d67416121df (patch)
treecb7dad95b6b21db3b237efabc9d0fa37879adc10 /spec/helpers
parent07121bf22b0929e03215f02b8740c3979ae6c872 (diff)
parent7cc8cae3a669fc5de91d6bc23812c265e8af4c93 (diff)
Merge branch 'release/0.6.9' into wdtk
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/link_to_helper_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index ef89e8bf9..030fd612d 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -73,4 +73,16 @@ 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
+
+ it 'should handle Date objects' do
+ simple_date(Date.new(2012, 11, 21)).should == 'November 21, 2012'
+ end
+ end
end