Specification creating tmp file on circleCI fails

I have an rspec test that creates a tmp file and it reads in the test. CircleCI not responding

Failure/Error: file_name = generate_csv_file(items) Errno::ENOENT: No such file or directory @ rb_sysopen - /home/ubuntu/project/tmp/batch_1443573588.csv 
+5
source share
1 answer

CricleCi does not have a tmp directory by default for rails projects.

Your options:

  • use the / tmp system
  • add tmp to git repository
  • add a checkout hook message to circle.yml that will create it
+5
source

Source: https://habr.com/ru/post/1232580/