aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/link_to_helper_spec.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2012-11-21 15:00:09 +1100
committerHenare Degan <henare.degan@gmail.com>2012-11-21 15:00:09 +1100
commit71f0597c0699fe638dd89635eea2db80e6c0cbff (patch)
tree7e7e4675c0bea381d26cc0681a6e9e7106ac61a4 /spec/helpers/link_to_helper_spec.rb
parent1bb497b5373698946d9e353ba37e537f7e142d8c (diff)
Fix regression by allowing Date objects too
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
-rw-r--r--spec/helpers/link_to_helper_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index a771a431c..030fd612d 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -80,5 +80,9 @@ describe LinkToHelper 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