Created
September 16, 2015 16:07
-
-
Save nomasprime/a644bd4f787541df04f5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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 |
This file contains hidden or 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
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