Check for Windows platform in a jruby compatible way

This commit is contained in:
Joan Karadimov 2016-07-24 15:39:44 +03:00 committed by Matthew Horan
parent 83a55e176c
commit 01c1a064f5
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ module CapybaraWebkitBuilder
end
def path_to_binary
case RUBY_PLATFORM
when /mingw32/
if Gem.win_platform?
"src/debug/webkit_server.exe"
else
"src/webkit_server"