Skip to content
Browse files

register coffee-script at initialize for 1.7.x support

  • Loading branch information...
1 parent d9b155a commit 7a658f52f10cee469ea7fb18e4ebe171065692dd @gabehayes gabehayes committed Feb 7, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/cucumber/cli/support_code_loader.js
View
2 lib/cucumber/cli/support_code_loader.js
@@ -1,5 +1,6 @@
var SupportCodeLoader = function(supportCodeFilePaths) {
var Cucumber = require('../../cucumber');
+ var CoffeeScript = require('coffee-script');
var self = {
getSupportCodeLibrary: function getSupportCodeLibrary() {
@@ -13,6 +14,7 @@ var SupportCodeLoader = function(supportCodeFilePaths) {
var secondarySupportCodeInitializer = self.getSecondarySupportCodeInitializer();
var initializer = function() {
var supportCodeHelper = this;
+ CoffeeScript.register();
primeSupportCodeInitializer.call(supportCodeHelper);
secondarySupportCodeInitializer.call(supportCodeHelper);
};

0 comments on commit 7a658f5

Please sign in to comment.
Something went wrong with that request. Please try again.