Permalink
Browse files

Adding a basic spec for this amazing little plugin that could

  • Loading branch information...
robbyrussell committed Mar 25, 2008
1 parent 7164711 commit 0446dccbdd773cc70bf54c242c6d4484cb0735c0
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/year_after_year_spec.rb
@@ -0,0 +1,12 @@
+require 'lib/year_after_year'
+
+describe PlanetArgon::YearAfterYear, 'current_year' do
+ before(:each) do
+ t = mock('Time')
+ Time.stub!(:now).and_return( Time.parse( 'Sun Jan 27 15:31:39 -0800 2006' ) )
+ end
+
+ it 'should return the current year example: 2006' do
+ current_year.should == '2006'
+ end
+end

0 comments on commit 0446dcc

Please sign in to comment.