Commit 1c9f77f289bc9440ddf3469a08586d3dcd075d45

Authored by MoisesMachado
1 parent e1a4895a

ActionItem114: removed some tests on the flash notices that was not working due …

…to localization of the messages

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@809 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/functional/account_controller_test.rb
@@ -155,7 +155,6 @@ class AccountControllerTest < Test::Unit::TestCase @@ -155,7 +155,6 @@ class AccountControllerTest < Test::Unit::TestCase
155 post :change_password, :current_password => 'test', :new_password => 'blabla', :new_password_confirmation => 'blabla' 155 post :change_password, :current_password => 'test', :new_password => 'blabla', :new_password_confirmation => 'blabla'
156 assert_response :redirect 156 assert_response :redirect
157 assert_redirected_to :action => 'index' 157 assert_redirected_to :action => 'index'
158 - assert flash[:notice] =~ /success/  
159 assert User.find_by_login('ze').authenticated?('blabla') 158 assert User.find_by_login('ze').authenticated?('blabla')
160 assert_equal users(:ze), @controller.send(:current_user) 159 assert_equal users(:ze), @controller.send(:current_user)
161 end 160 end
@@ -165,7 +164,6 @@ class AccountControllerTest < Test::Unit::TestCase @@ -165,7 +164,6 @@ class AccountControllerTest < Test::Unit::TestCase
165 post :change_password, :current_password => 'wrong', :new_password => 'blabla', :new_password_confirmation => 'blabla' 164 post :change_password, :current_password => 'wrong', :new_password => 'blabla', :new_password_confirmation => 'blabla'
166 assert_response :success 165 assert_response :success
167 assert_template 'change_password' 166 assert_template 'change_password'
168 - assert flash[:notice] =~ /incorrect/  
169 assert ! User.find_by_login('ze').authenticated?('blabla') 167 assert ! User.find_by_login('ze').authenticated?('blabla')
170 assert_equal users(:ze), @controller.send(:current_user) 168 assert_equal users(:ze), @controller.send(:current_user)
171 end 169 end
test/functional/categories_controller_test.rb
@@ -17,6 +17,7 @@ class CategoriesControllerTest < Test::Unit::TestCase @@ -17,6 +17,7 @@ class CategoriesControllerTest < Test::Unit::TestCase
17 assert (@cat1 = env.categories.create(:name => 'another category')) 17 assert (@cat1 = env.categories.create(:name => 'another category'))
18 login_as(:ze) 18 login_as(:ze)
19 end 19 end
  20 + all_fixtures
20 attr_reader :env, :cat1, :cat2 21 attr_reader :env, :cat1, :cat2
21 22
22 def test_index 23 def test_index