Errno :: EACCES:权限被拒绝@ unlink_internal - E:/work/testing/db/test.sqlite3

时间:2015-07-13 18:30:26

标签: ruby-on-rails sqlite unit-testing

我在控制台中运行了一些命令:

1)rails生成脚手架产品

2)rake db:migrate

3)佣金测试

以及此信息:

C:\tools\rubies\ruby-2.1.5-p273\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) E:/work/testing/bin/rake test
Testing started at 21:14 ...
DL is deprecated, please use Fiddle
rake aborted!
Errno::EACCES: Permission denied @ unlink_internal - E:/work/testing/db/test.sqlite3
E:/work/testing/test/test_helper.rb:3:in `<top (required)>'
E:/work/testing/test/helpers/products_helper_test.rb:1:in `<top (required)>'
-e:1:in `load'
-e:1:in `<main>'
Tasks: TOP => test:run => test:units
(See full trace by running task with --trace)

Process finished with exit code 1

如何解决此错误?

0 个答案:

没有答案