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