lib/cucumber/js_support/js_dsl.js in cucumber-0.8.7 vs lib/cucumber/js_support/js_dsl.js in cucumber-0.9.0

- old
+ new

@@ -1,17 +1,17 @@ var CucumberJsDsl = { registerStepDefinition: function(regexp, func) { if(func == null) { - jsLanguage.executeStepDefinition(regexp); + jsLanguage.execute_step_definition(regexp); } else{ - jsLanguage.addStepDefinition(regexp, func); + jsLanguage.add_step_definition(regexp, func); } }, registerTransform: function(regexp, func) { - jsLanguage.registerJsTransform(regexp, func); + jsLanguage.register_js_transform(regexp, func); }, beforeHook: function(tag_expressions_or_func, func) { CucumberJsDsl.__registerJsHook('before', tag_expressions_or_func, func); }, @@ -38,10 +38,10 @@ var tag_expressions = tag_expressions_or_func; } else { var hook_func = tag_expressions_or_func; var tag_expressions = []; } - jsLanguage.registerJsHook(label, tag_expressions, hook_func); + jsLanguage.register_js_hook(label, tag_expressions, hook_func); } } var Given = CucumberJsDsl.registerStepDefinition; var When = CucumberJsDsl.registerStepDefinition; \ No newline at end of file