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 end
def path_to_binary def path_to_binary
case RUBY_PLATFORM if Gem.win_platform?
when /mingw32/
"src/debug/webkit_server.exe" "src/debug/webkit_server.exe"
else else
"src/webkit_server" "src/webkit_server"