Skip to content

Commit

Permalink
Merge pull request apickli#68 from michaelshaffer37/gherkin-include-u…
Browse files Browse the repository at this point in the history
…pdate

Updated the Instructions for Including the Gherkin Expressions
  • Loading branch information
seymen authored Sep 29, 2016
2 parents 6d46399 + ba317b8 commit 46e9ccb
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 46e9ccb

Please sign in to comment.