Rails 3 file create getting permission denied error, using XP
I'm working through Rails3inAction and cannot progress due t开发者_开发技巧o a permissions denied error. The code is testing the processing of uploaded files through a separate files controller, relevant code is:
let(:asset) do
ticket.assets.create(:asset => File.open(path))
end
When I run rspec, the error I'm getting is:
FilesController users without access cannot access assets in this project
Failure/Error: ticket.assets.create(:asset => File.open(path))
Errno::EACCES:
Permission denied - C:/Documents and
Settings/tick/public/system/assets/1/original/speed.txt
I suspect this is to do with windows XP and would appreciate any help!!
Turns out to be a Rails problem, not a Permissions problem at all!
精彩评论