From 59805e9b73058f737b7d574991cccbc340290256 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 5 Apr 2018 22:16:36 +0200 Subject: [PATCH] Fix specs --- spec/shared/features/nested_documentable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/shared/features/nested_documentable.rb b/spec/shared/features/nested_documentable.rb index 2f6906ea1..9873772f3 100644 --- a/spec/shared/features/nested_documentable.rb +++ b/spec/shared/features/nested_documentable.rb @@ -52,7 +52,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na login_as user_to_login visit send(path, arguments) documentable.class.max_documents_allowed.times.each do - documentable_attach_new_file("spec/fixtures/files/empty.pdf") + documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf')) end expect(page).to have_css ".max-documents-notice", visible: true