I'm trying to run rspec test on my sublime text 3 with RubyTest package but I'm getting this error
The system cannot find the path specified.
[Finished in 0.0s with exit code 1]
[cmd: ['rspec spec\\requests\\static_pages_spec.rb -l15']]
[dir: H:\Sites\wedding_app]
[path: C:\ImageMagick-6.8.7-Q16;C:\RailsInstaller\Ruby2.0.0\bin;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\RailsInstaller\Ruby2.0.0\bin]
I have a good idea what the problem is but I don't know how to fix it the problem is with the double backslash on running the test in cmd so it can't find the actual .rb file to test with.
[cmd: ['rspec spec\\requests\\static_pages_spec.rb -l15']]
P.S: I've tried removing {relative_path} in RubyTest settings and it runs rspec fine but now I cannot run specified tests. I'm beginning to think this has more to do with Sublime Text 3 then RubyTest, since RubyTest works fine on my Sublime Text2
anyone know how to fix this problem?
The error message actually means that Sublime can't find the
rspeccommand. The reason is because your path is incorrect - there's no;betweenImageMagick-6.8.7andC:\RailsInstaller\Ruby2.0.0\bin. Also, there's a space betweenProgram Filesand\RailsInstaller. Set your path variable to the following:and you should be all set, assuming
rspecis in one of those directories.