Skip to content

Instantly share code, notes, and snippets.

@larrycai
Created March 12, 2012 14:37
Show Gist options
  • Save larrycai/2022360 to your computer and use it in GitHub Desktop.
Save larrycai/2022360 to your computer and use it in GitHub Desktop.
make aruba work for unix and windows under cucumber
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