Commit f21d2a48a2c7be5cbda3668323026f0b4e1ce500

Authored by Rodrigo Souto
1 parent 8c7fd1cd

content_viewer tests: fix text view page expectations

test/functional/content_viewer_controller_test.rb
... ... @@ -1287,9 +1287,7 @@ class ContentViewerControllerTest < ActionController::TestCase
1287 1287 should 'display link to download of non-recognized file types on its page' do
1288 1288 file = UploadedFile.create!(:uploaded_data => fixture_file_upload('/files/test.txt', 'bin/unknown'), :profile => profile)
1289 1289 get :view_page, file.url.merge(:view=>:true)
1290   - assert_tag :tag => 'a',
1291   - :content => file.filename,
1292   - :attributes => { :href => file.public_filename }
  1290 + assert_match /this is a sample text file/, @response.body
1293 1291 end
1294 1292  
1295 1293 end
... ...