From e0278fc161ebd2bc3441695bb0851b69e9e4dc3a Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 8 Dec 2011 20:51:43 -0200 Subject: [PATCH] Fix CategoriesController tests --- test/functional/categories_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/categories_controller_test.rb b/test/functional/categories_controller_test.rb index 5741c5c..0b9d3f5 100644 --- a/test/functional/categories_controller_test.rb +++ b/test/functional/categories_controller_test.rb @@ -92,7 +92,7 @@ class CategoriesControllerTest < ActionController::TestCase should 'expire categories menu cache when some menu category is updated' do cat = Category.create!(:name => 'test category in menu', :environment => Environment.default, :display_in_menu => true) - @controller.expects(:expire_fragment).with(:controller => 'public', :action => 'categories_menu').once + @controller.expects(:expire_fragment).with(:controller => 'public', :action => 'categories_menu').at_least_once post :edit, :id => cat.id, :category => { :name => 'new name for category in menu' } end @@ -103,7 +103,7 @@ class CategoriesControllerTest < ActionController::TestCase end should 'expire categories menu cache when new category is created for the menu' do - @controller.expects(:expire_fragment).with(:controller => 'public', :action => 'categories_menu').once + @controller.expects(:expire_fragment).with(:controller => 'public', :action => 'categories_menu').at_least_once post :new, :category => { :name => 'my new category for the menu', :display_in_menu => '1' } end -- libgit2 0.21.2