Skip to content

Instantly share code, notes, and snippets.

@Vaysman
Created February 14, 2012 13:39
Show Gist options
  • Save Vaysman/1826863 to your computer and use it in GitHub Desktop.
Save Vaysman/1826863 to your computer and use it in GitHub Desktop.
def self.get_features(doc)
(doc / '//test-suite[@type="TestFixture"]').map do |e|
{
'name' => (e['description'] || e['name']).strip,
'scenarios_attributes' => get_scenarios(e),
'scenarios_attributes'.map do |scenario|
if (scenario.next['level'] == nil)
scenario.next['level'] = scenario['level']
scenario.next['runner'] = scenario['runner']
scenario
end
end
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment