Skip to content

Commit 375a469

Browse files
committed
Put test results in a directory
So they can be symlinked if necessary
1 parent cc30dc1 commit 375a469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/concerns/has_test_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_job_id_key
5353

5454
def test_results_path
5555
path_id = Rails.env.test? ? "fakeid_#{model_name.singular}_#{id}" : test_job_id
56-
File.join(Rails.root, 'tmp', "test_results_#{path_id}.yml")
56+
Rails.root.join('tmp', 'source_test_results').tap { |d| d.mkdir unless d.exist? }.join("test_results_#{path_id}.yml")
5757
end
5858

5959
def deep_hashify(params)

0 commit comments

Comments
 (0)