Project

General

Profile

Feature #22482 » 0001-Add-basic-test-for-image-view-22058.patch

Gregor Schmidt, 2016-04-13 13:47

View differences:

test/functional/attachments_controller_test.rb
set_tmp_attachments_directory
end
def test_show_image
@request.session[:user_id] = 2
get :show, :id => 16
assert_response :success
assert_template 'image'
assert_equal 'text/html', @response.content_type
assert_select 'img.filecontent', :src => attachments(:attachments_010).filename
end
def test_show_other
get :show, :id => 6
assert_response :success
(1-1/4)