Skip to content

Commit

Permalink
Updated the Instructions for Including the Gherkin Expressions
Browse files Browse the repository at this point in the history
This commit updates the instructions in the README.md for how to
leverage the Gherkin Expressions in a project.
  • Loading branch information
michaelshaffer37 committed Sep 29, 2016
1 parent 6d46399 commit ba317b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,11 @@ THEN:
I store the value of body path (.*) as (.*) in global scope
```

The simplest way to adopt these expressions is to create a symlink from node_modules/apickli/apickli-gherkin.js to test/features/step_definitions/apickli-gherkin.js
The simplest way to adopt these expressions is to create a file named apickli-gherkin.js in features/step_definitions and extend the apickli/gherkin.js module.

```sh
$ ln -s ../../../node_modules/apickli/apickli-gherkin.js test/features/step_definitions/apickli-gherkin.js
add the following to test/features/step_definitions/apickli-gherkin.js
```javascript
module.exports = require('apickli/apickli-gherkin');
```

If using Windows, follow this guide to create a symlink: [How-To Geek Guide](http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/).
Expand Down

0 comments on commit ba317b8

Please sign in to comment.