Permalink
Browse files

Refactor

  • Loading branch information...
1 parent 336ca0f commit a5d42b0274ddad49a293fd92e23cb87053ab0d07 @jbpros jbpros committed Nov 27, 2013
View
@@ -65,7 +65,7 @@ var Cli = function(argv) {
summary : prints a summary only, after all\n\
scenarios were executed\n\
\n\
---coffee Display step definitions in CoffeeScript.\n\
+--coffee Display step definition snippets in CoffeeScript.\n\
\n\
-v, --version Display Cucumber.js's version.\n\
\n\
@@ -1,8 +1,8 @@
-var SupportCode = {};
-SupportCode.Hook = require('./support_code/hook');
-SupportCode.Library = require('./support_code/library');
-SupportCode.StepDefinition = require('./support_code/step_definition');
-SupportCode.StepDefinitionSnippetBuilder = require('./support_code/step_definition_snippet_builder');
+var SupportCode = {};
+SupportCode.Hook = require('./support_code/hook');
+SupportCode.Library = require('./support_code/library');
+SupportCode.StepDefinition = require('./support_code/step_definition');
+SupportCode.StepDefinitionSnippetBuilder = require('./support_code/step_definition_snippet_builder');
SupportCode.StepDefinitionSnippetBuilderSyntax = require('./support_code/step_definition_snippet_builder_syntax');
-SupportCode.WorldConstructor = require('./support_code/world_constructor');
-module.exports = SupportCode;
+SupportCode.WorldConstructor = require('./support_code/world_constructor');
+module.exports = SupportCode;
@@ -1,7 +1,7 @@
-var _ = require('underscore'),
- Syntax = function() {},
- JavaScriptSyntax = function() {},
- CoffeeScriptSyntax = function() {};
+var _ = require('underscore');
+var Syntax = function() {};
+var JavaScriptSyntax = function() {};
+var CoffeeScriptSyntax = function() {};
Syntax.prototype = {
getStepDefinitionDocString: function() {
@@ -15,7 +15,7 @@ Syntax.prototype = {
getStepDefinitionCallback: function() {
return 'callback';
},
-
+
getPatternStart: function() {
return '/^';
},
@@ -94,5 +94,4 @@ CoffeeScriptSyntax.prototype = {
_.extend(CoffeeScriptSyntax.prototype, Syntax.prototype);
exports.JavaScript = JavaScriptSyntax;
-exports.CoffeeScript = CoffeeScriptSyntax;
-
+exports.CoffeeScript = CoffeeScriptSyntax;
@@ -1,9 +1,9 @@
require('../../support/spec_helper');
describe('Cucumber.SupportCode.StepDefinitionSnippetBuilderSyntax', function() {
- var Cucumber = requireLib('cucumber'),
- Syntax = Cucumber.SupportCode.StepDefinitionSnippetBuilderSyntax,
- stepDefinitionEndComment = 'express the regexp above with the code you wish you had';
+ var Cucumber = requireLib('cucumber');
+ var Syntax = Cucumber.SupportCode.StepDefinitionSnippetBuilderSyntax;
+ var stepDefinitionEndComment = 'express the regexp above with the code you wish you had';
function testBaseSyntax(syntax) {

0 comments on commit a5d42b0

Please sign in to comment.