我正在玩rails 4.我刚刚为我的模型创建了非常简单的测试但是当我尝试执行“rake test:models”时,我得到以下错误:
C:\rails\project>rake test:models DL is deprecated,please use Fiddle rake aborted! Errno::EACCES: Permission denied @ unlink_internal - /tmp/db/new.sqlite3 C:/rails/project/test/test_helper.rb:3:in `<top (required)>' C:/rails/project/test/models/admin_test.rb:1:in `<top (required)>' Tasks: TOP => test:models (See full trace by running task with --trace)
我的测试数据库配置如下所示:
test: adapter: sqlite3 database: /tmp/db/new.sqlite3 pool: 5 timeout: 5000
“/ tmp / db”是我个人笔记本电脑上完全访问权限的目录.
什么想法可能是这个问题的根源?