Skip to content

Commit

Permalink
Improve compatibility with Redmine 5 - Use fullpath to fixtures/files
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Jul 18, 2022
1 parent e643cac commit 129f00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ def mail_body(mail)
end

def uploaded_test_file(name, mime)
fixture_file_upload("files/#{name}", mime, true)
fixture_file_upload("#{::Rails.root}/test/fixtures/files/#{name}", mime, true)
end

0 comments on commit 129f00d

Please sign in to comment.