aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/date_time_helper_spec.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-06-04 15:45:52 +0100
committerGareth Rees <gareth@mysociety.org>2014-06-05 10:56:04 +0100
commit07556cd8d6e48f5ca54eb2e8b09fba179f7579a3 (patch)
tree0db9c888ba3e7057308de464c149cc73faad764a /spec/helpers/date_time_helper_spec.rb
parentd5b1587b378c73354b1677fb17e96f39c76f2ec3 (diff)
Remove DateTimeHelper#year_from_date
DateTime, Date and Time all have #year methods
Diffstat (limited to 'spec/helpers/date_time_helper_spec.rb')
-rw-r--r--spec/helpers/date_time_helper_spec.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/helpers/date_time_helper_spec.rb b/spec/helpers/date_time_helper_spec.rb
index 870deb2d0..c4fdee1d1 100644
--- a/spec/helpers/date_time_helper_spec.rb
+++ b/spec/helpers/date_time_helper_spec.rb
@@ -68,21 +68,4 @@ describe DateTimeHelper do
end
end
-
- describe :year_from_date do
-
- it 'returns the year component of a date' do
- year_from_date(Date.new(2012, 11, 21)).should == '2012'
- end
-
- it 'returns the year component of a datetime' do
- year_from_date(DateTime.new(2012, 11, 21)).should == '2012'
- end
-
- it 'returns the year component of a time' do
- year_from_date(Time.now).should == Date.today.year.to_s
- end
-
- end
-
end