Skip to content

Commit

Permalink
ChildProcess is unable to find rake in Windows. This change makes the…
Browse files Browse the repository at this point in the history
… file lookup more platform safe.
  • Loading branch information
twill88 committed Mar 12, 2013
1 parent 18ebb0b commit 274ef30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/jasmine/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def start_unicorn_server(port, options)
def start_rake_server(port, task)
::Guard::UI.info "Guard::Jasmine starts Jasmine Gem test server on port #{ port }."

self.process = ChildProcess.build('rake', task, "JASMINE_PORT=#{ port }")
self.process = ChildProcess.build('ruby', '-S', 'rake', task, "JASMINE_PORT=#{ port }")
self.process.io.inherit! if ::Guard.respond_to?(:options) && ::Guard.options && ::Guard.options[:verbose]
self.process.start

Expand Down

0 comments on commit 274ef30

Please sign in to comment.