From f21d2a48a2c7be5cbda3668323026f0b4e1ce500 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 2 Dec 2013 15:37:04 -0300 Subject: [PATCH] content_viewer tests: fix text view page expectations --- test/functional/content_viewer_controller_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index 688d595..a3ee3aa 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -1287,9 +1287,7 @@ class ContentViewerControllerTest < ActionController::TestCase should 'display link to download of non-recognized file types on its page' do file = UploadedFile.create!(:uploaded_data => fixture_file_upload('/files/test.txt', 'bin/unknown'), :profile => profile) get :view_page, file.url.merge(:view=>:true) - assert_tag :tag => 'a', - :content => file.filename, - :attributes => { :href => file.public_filename } + assert_match /this is a sample text file/, @response.body end end -- libgit2 0.21.2