错误:
Errno::ETXTBSY: 文本文件繁忙 @ unlink_internal -/home/vagrant/shared/sample_app/db/test.sqlite3
/home/vagrant/shared/sample_app/test/test_helper.rb:3:in <top (required)>'
/home/vagrant/shared/sample_app/test/helpers/static_pages_helper_test.rb:1:in
'
任务:TOP => test:run => test:units
(通过使用 --trace 运行任务查看完整跟踪)
最佳答案
将数据库文件移到 vagrant 共享之外,例如移至/tmp。
编辑database.yml:
development:
<<: *default
database: /tmp/project/development.sqlite3
test:
<<: *default
database: /tmp/project/test.sqlite3
关于ruby-on-rails - Errno::ETXTBSY: 文本文件繁忙 @ unlink_internal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27359778/