ruby-on-railswindowsrspecsublimetextruby-test

sublime text ruby test windows cannot find path


I am running Windows 7 and have installed the sublime text ruby test. I can run rspec spec/ fine from the command line, however when I try it from sublime text i get the following error:

I check the PATH variable and its the same in my command line.

--

The system cannot find the path specified.
[Finished in 0.1s with exit code 1]
[cmd: ['bundle exec rspec spec\\models\\user_spec.rb']]
[dir: C:\Users\User1\Sites\sample_app]
[path: C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\site\bin;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby2.0.0\bin]

Solution

  • On Windows, instead of

     "cmd": ["cake", "sbuild"]
    

    it should be

     "cmd": ["cake.cmd", "sbuild"]
    

    Instead of modifying it just add:

     "windows":
     {
        "cmd": ["cake.cmd", "sbuild"]
     }