Created
March 12, 2012 14:37
-
-
Save larrycai/2022360 to your computer and use it in GitHub Desktop.
make aruba work for unix and windows under cucumber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aruba/cucumber' | |
module ArubaOverrides | |
def detect_ruby(cmd) | |
processor, platform, *rest = RUBY_PLATFORM.split("-") | |
#puts platform | |
if platform =~ /w32$/ && cmd =~ /^mkbok / #mkbok is the real command in features | |
"ruby -I../../lib -S ../../bin/#{cmd}" | |
else | |
"#{cmd}" | |
end | |
end | |
end | |
World(ArubaOverrides) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment