Commit a71e7ba1bd5bc3c2a54039a451b4cbea2afa52af

Authored by Antonio Terceiro
1 parent 8502ce1e

ActionItem806: fixing test

test/functional/content_viewer_controller_test.rb
... ... @@ -551,7 +551,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase
551 551  
552 552 should 'extract year and month from path' do
553 553 blog = Blog.create!(:name => 'A blog test', :profile => profile)
554   - year, month = blog.created_at.year, blog.created_at.month
  554 + year, month = blog.created_at.year.to_s, '%02d' % blog.created_at.month
555 555 get :view_page, :profile => profile.identifier, :page => [blog.path, year, month]
556 556 assert_equal({ :year => year.to_s, :month => month.to_s }, assigns(:page).filter)
557 557 end
... ...