From f3ef5ae71e0f7adcb4e395ee085028028feb32c4 Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 3 May 2018 20:12:44 +0200 Subject: [PATCH] Fixes poll questions answer images absolute path spec --- .../features/admin/poll/questions/answers/images/images_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/poll/questions/answers/images/images_spec.rb b/spec/features/admin/poll/questions/answers/images/images_spec.rb index 497d873a0..82158ea5b 100644 --- a/spec/features/admin/poll/questions/answers/images/images_spec.rb +++ b/spec/features/admin/poll/questions/answers/images/images_spec.rb @@ -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']")