Skip to content

Instantly share code, notes, and snippets.

@nomasprime
Created September 16, 2015 16:07
Show Gist options
  • Save nomasprime/a644bd4f787541df04f5 to your computer and use it in GitHub Desktop.
Save nomasprime/a644bd4f787541df04f5 to your computer and use it in GitHub Desktop.
module Cucumber
module Ast
class TreeWalker
alias_method :visit_features_alias, :visit_features
def visit_features(features)
EM.synchrony do
visit_features_alias features
EM.stop
end
end
end
end
end
module RSpec
module Core
class ExampleGroup
class << self
alias_method :run_alias, :run
def run(reporter)
if EM.reactor_running?
run_alias reporter
else
out = nil
EM.synchrony do
out = run_alias reporter
EM.stop
end
out
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment