##// END OF EJS Templates
Add basic test for image view (#22482)....
Jean-Philippe Lang -
r15014:d8d23fbb6b23
parent child
Show More
@@ -189,6 +189,15 class AttachmentsControllerTest < ActionController::TestCase
189 189 set_tmp_attachments_directory
190 190 end
191 191
192 def test_show_image
193 @request.session[:user_id] = 2
194 get :show, :id => 16
195 assert_response :success
196 assert_template 'image'
197 assert_equal 'text/html', @response.content_type
198 assert_select 'img.filecontent', :src => attachments(:attachments_010).filename
199 end
200
192 201 def test_show_other
193 202 get :show, :id => 6
194 203 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now