Skip to content

Commit

Permalink
Change Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Macchi committed Feb 22, 2018
1 parent 6d78c8a commit 16918d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ In the example below we have referred to `centos6a` and `centos7b` in all of our
- **type** *statement or rvalue*
- **returns** *Optional: A value to return*

**before and after conditions** We can set before and after blocks before each spec test. Each before or after block accepts a condition.
```yaml
before:
- "Puppet::Util::Platform.stubs(:'windows?').returns(:facts['kernel'] == 'windows')"

after:
- "echo 'Test finished running'
```
**opts** The `opts` section overrides defaults for the `Onceover::Controlrepo` class' `opts` hash.
```yaml
Expand Down

0 comments on commit 16918d1

Please sign in to comment.