Skip to content

Instantly share code, notes, and snippets.

@msassak
Created November 20, 2009 23:40
Show Gist options
  • Save msassak/239881 to your computer and use it in GitHub Desktop.
Save msassak/239881 to your computer and use it in GitHub Desktop.
module Cucumber
module SmartAst
class Execute < Command
def initialize(step_mother, broadcaster)
@step_mother, @broadcaster = step_mother, broadcaster
end
def execute(feature)
@broadcaster.broadcast_feature(feature)
feature.units.each do |unit|
results = @step_mother.execute(unit)
@broadcaster.broadcast_results(results)
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment