Skip to content

Commit

Permalink
Fixing #55
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Aug 20, 2014
1 parent 121a903 commit ff443e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 2 additions & 11 deletions lib/parsers/FeatureParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,23 +274,14 @@ var Scenario = function(title, background, annotations, feature) {
var steps = [];
var examples;
var handlers = new Handlers({
text: capture_description,
blank: end_description,
text: capture_step,
blank: fn.noop,
annotation: start_scenario,
scenario: start_scenario,
examples: start_examples
});
var _this = this;

function capture_description(event, text) {
description.push(text);
}

function end_description() {
handlers.register('text', capture_step);
handlers.register('blank', fn.noop);
}

function capture_step(event, text) {
steps.push(text);
}
Expand Down
1 change: 0 additions & 1 deletion test/features/simple_scenario.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Scenario: Simple Scenario

Given A
When B
Then C

0 comments on commit ff443e1

Please sign in to comment.