Fixes poll questions answer images absolute path spec

This commit is contained in:
decabeza
2018-05-03 20:12:44 +02:00
parent a709f846be
commit f3ef5ae71e

View File

@@ -39,7 +39,7 @@ feature 'Images' do
expect(page).to_not have_content('clippy.jpg')
visit new_admin_answer_image_path(answer)
imageable_attach_new_file(image, 'spec/fixtures/files/clippy.jpg')
imageable_attach_new_file(image, Rails.root.join('spec/fixtures/files/clippy.jpg'))
click_button 'Save image'
expect(page).to have_css("img[title='clippy.jpg']")