2013-12-28 01:26:31 +01:00
|
|
|
require 'aruba/cucumber'
|
2014-04-04 19:56:47 +02:00
|
|
|
require 'aruba/jruby'
|
2013-12-28 01:26:31 +01:00
|
|
|
require 'middleman-core/step_definitions/middleman_steps'
|
|
|
|
require 'middleman-core/step_definitions/builder_steps'
|
|
|
|
require 'middleman-core/step_definitions/server_steps'
|
2011-12-16 01:15:28 +01:00
|
|
|
|
2014-07-03 21:13:22 +02:00
|
|
|
# Monkeypatch for windows support
|
|
|
|
module ArubaMonkeypatch
|
|
|
|
def detect_ruby(cmd)
|
|
|
|
if cmd.start_with?('middleman ') && Gem.win_platform?
|
|
|
|
"#{current_ruby} #{Dir.pwd}/bin/#{cmd}"
|
|
|
|
else
|
|
|
|
cmd.sub(/^ruby(?= )/, current_ruby)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
World(ArubaMonkeypatch)
|
|
|
|
|
2011-12-16 01:15:28 +01:00
|
|
|
Before do
|
2014-04-04 19:56:47 +02:00
|
|
|
@aruba_timeout_seconds = RUBY_PLATFORM == 'java' ? 120 : 60
|
2012-08-14 00:39:06 +02:00
|
|
|
end
|