cucumber/cucumber-js — pull request #223 by cono (2014-08-13 09:40:58+00:00)
Title: Add nested step functionality

I wanted to add nested step functionality like ruby version has:
https://github.com/cucumber/cucumber/wiki/Calling-Steps-from-Step-Definitions

Can be used like so:
feature file:
```
Feature: Nested Steps

Scenario: Simple step
Given a turtle

Scenario: Use callback.step to call a single step
Given two turtles
```

step definition:
```
var cucumberStepsTests = function() {
var Given = When = Then = this.defineStep;
var World = require('./cucumber_world').World;
this.World = World;

Given(/^a turtle$/, function(callback) {
console.log('turtle!');
callback();
});

Given(/^two turtles$/, function(callback) {
var World = this;
World.step("a turtle", function() {
World.step("a turtle", function() {
callback();
});
});
});
};

module.exports = cucumberStepsTests;
```

Please share your thoughts.