Browse files

Ensure current year displays properly in a string. Now with 33% more …

…specs!
  • Loading branch information...
1 parent 2174a96 commit dfb9682c4559c1276092e610d98ffe55fb8da4dd Tim Riley committed Mar 28, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/year_after_year_spec.rb
View
4 spec/year_after_year_spec.rb
@@ -9,6 +9,10 @@
it 'should return the current year example: 2006' do
current_year.should == 2006
end
+
+ it 'should become a string when substituted in a string' do
+ "This is #{current_year}".should == 'This is 2006'
+ end
end
describe PlanetArgon::YearAfterYear, 'year_range()' do

0 comments on commit dfb9682

Please sign in to comment.