From 1c9f77f289bc9440ddf3469a08586d3dcd075d45 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Mon, 22 Oct 2007 18:26:45 +0000 Subject: [PATCH] ActionItem114: removed some tests on the flash notices that was not working due to localization of the messages --- test/functional/account_controller_test.rb | 2 -- test/functional/categories_controller_test.rb | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 76c2292..985c736 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -155,7 +155,6 @@ class AccountControllerTest < Test::Unit::TestCase post :change_password, :current_password => 'test', :new_password => 'blabla', :new_password_confirmation => 'blabla' assert_response :redirect assert_redirected_to :action => 'index' - assert flash[:notice] =~ /success/ assert User.find_by_login('ze').authenticated?('blabla') assert_equal users(:ze), @controller.send(:current_user) end @@ -165,7 +164,6 @@ class AccountControllerTest < Test::Unit::TestCase post :change_password, :current_password => 'wrong', :new_password => 'blabla', :new_password_confirmation => 'blabla' assert_response :success assert_template 'change_password' - assert flash[:notice] =~ /incorrect/ assert ! User.find_by_login('ze').authenticated?('blabla') assert_equal users(:ze), @controller.send(:current_user) end diff --git a/test/functional/categories_controller_test.rb b/test/functional/categories_controller_test.rb index 06da796..a8eb1bf 100644 --- a/test/functional/categories_controller_test.rb +++ b/test/functional/categories_controller_test.rb @@ -17,6 +17,7 @@ class CategoriesControllerTest < Test::Unit::TestCase assert (@cat1 = env.categories.create(:name => 'another category')) login_as(:ze) end + all_fixtures attr_reader :env, :cat1, :cat2 def test_index -- libgit2 0.21.2