From a71e7ba1bd5bc3c2a54039a451b4cbea2afa52af Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 2 Jan 2009 15:07:31 -0300 Subject: [PATCH] ActionItem806: fixing test --- test/functional/content_viewer_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index 3292bd7..9620735 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -551,7 +551,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase should 'extract year and month from path' do blog = Blog.create!(:name => 'A blog test', :profile => profile) - year, month = blog.created_at.year, blog.created_at.month + year, month = blog.created_at.year.to_s, '%02d' % blog.created_at.month get :view_page, :profile => profile.identifier, :page => [blog.path, year, month] assert_equal({ :year => year.to_s, :month => month.to_s }, assigns(:page).filter) end -- libgit2 0.21.2