Commit c19a7b4666a63bce19120885aa8b734218d253e1

Authored by Rodrigo Souto
1 parent 37567521

content-viewer: remove obsolete test

test/functional/content_viewer_controller_test.rb
@@ -712,16 +712,6 @@ class ContentViewerControllerTest < ActionController::TestCase @@ -712,16 +712,6 @@ class ContentViewerControllerTest < ActionController::TestCase
712 assert_tag :tag => 'li', :attributes => {:title => 'my img title', :class => 'image-gallery-item'}, :child => {:tag => 'span', :content => 'my img title'} 712 assert_tag :tag => 'li', :attributes => {:title => 'my img title', :class => 'image-gallery-item'}, :child => {:tag => 'span', :content => 'my img title'}
713 end 713 end
714 714
715 - should 'not allow html on title of the images' do  
716 - login_as(profile.identifier)  
717 - folder = fast_create(Gallery, :profile_id => profile.id)  
718 - file = UploadedFile.create!(:title => '<b>my img title</b>', :profile => profile, :parent => folder, :uploaded_data => fixture_file_upload('/files/rails.png', 'image/png'))  
719 -  
720 - get :view_page, :profile => profile.identifier, :page => folder.explode_path  
721 -  
722 - assert_tag :tag => 'li', :attributes => {:title => 'my img title', :class => 'image-gallery-item'}, :child => {:tag => 'span', :content => 'my img title'}  
723 - end  
724 -  
725 should 'allow publisher owner view private articles' do 715 should 'allow publisher owner view private articles' do
726 c = Community.create!(:name => 'test_com') 716 c = Community.create!(:name => 'test_com')
727 u = create_user_with_permission('test_user', 'publish_content', c) 717 u = create_user_with_permission('test_user', 'publish_content', c)