Commit c72dd8a69730986e279e92fc5dad5dfa9515944d

Authored by Leandro Nunes dos Santos
1 parent c6427402

removing unnecessary tests

Showing 1 changed file with 0 additions and 24 deletions   Show diff stats
test/functional/profile_controller_test.rb
@@ -1383,30 +1383,6 @@ class ProfileControllerTest < ActionController::TestCase @@ -1383,30 +1383,6 @@ class ProfileControllerTest < ActionController::TestCase
1383 assert_equal "Comment successfully added.", assigns(:message) 1383 assert_equal "Comment successfully added.", assigns(:message)
1384 end 1384 end
1385 1385
1386 - should 'display comment in wall if user was removed' do  
1387 - UserStampSweeper.any_instance.stubs(:current_user).returns(profile)  
1388 - article = TinyMceArticle.create!(:profile => profile, :name => 'An article about free software')  
1389 - to_be_removed = create_user('removed_user').person  
1390 - comment = Comment.create!(:author => to_be_removed, :title => 'Test Comment', :body => 'My author does not exist =(', :source_id => article.id, :source_type => 'Article')  
1391 - to_be_removed.destroy  
1392 -  
1393 - login_as(profile.identifier)  
1394 - get :index, :profile => profile.identifier  
1395 -  
1396 - assert_tag :tag => 'span', :content => '(removed user)', :attributes => {:class => 'comment-user-status comment-user-status-wall icon-user-removed'}  
1397 - end  
1398 -  
1399 - should 'display comment in wall from non logged users' do  
1400 - UserStampSweeper.any_instance.stubs(:current_user).returns(profile)  
1401 - article = TinyMceArticle.create!(:profile => profile, :name => 'An article about free software')  
1402 - comment = Comment.create!(:name => 'outside user', :email => 'outside@localhost.localdomain', :title => 'Test Comment', :body => 'My author does not exist =(', :source_id => article.id, :source_type => 'Article')  
1403 -  
1404 - login_as(profile.identifier)  
1405 - get :index, :profile => profile.identifier  
1406 -  
1407 - assert_tag :tag => 'span', :content => '(unauthenticated user)', :attributes => {:class => 'comment-user-status comment-user-status-wall icon-user-unknown'}  
1408 - end  
1409 -  
1410 should 'add locale on mailing' do 1386 should 'add locale on mailing' do
1411 community = fast_create(Community) 1387 community = fast_create(Community)
1412 create_user_with_permission('profile_moderator_user', 'send_mail_to_members', community) 1388 create_user_with_permission('profile_moderator_user', 'send_mail_to_members', community)