Fix functional test

This commit is contained in:
Alexander Meindl 2016-01-30 15:14:33 +01:00
parent cb2d51106c
commit 42187f8302

View File

@ -186,13 +186,13 @@ class WikiControllerTest < ActionController::TestCase
def test_show_with_garfield_macro
@request.session[:user_id] = 1
@page.content.text = '{{garfield(2015,10,20)}}'
@page.content.text = '{{garfield(2015-10-20)}}'
@page.content.save!
get :show, project_id: 1, id: @page_name
assert_response :success
assert_template 'show'
assert_select 'div.wiki img.garfield'
assert_select 'img[src=?]', '/garfield/ga151020/jpg'
assert_select 'img[src=?]', '/garfield/2015-10-20'
end
def test_show_with_weeknumber_macro