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