Skip to content

Commit

Permalink
Merge pull request #243 from puppetlabs/jbondpdx-patch-1
Browse files Browse the repository at this point in the history
minor edits to mock_with section
  • Loading branch information
DavidS authored May 31, 2018
2 parents b44f509 + 8ec0d8a commit 757e875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ The following links may give you some insight into why...
mock_with
=========

There are two major mocking frameworks in modules test suites today: [mocha](https://rubygems.org/gems/mocha) and [rspec-mocks](https://rubygems.org/gems/rspec-mocks). It is recommended to choose rspec-mocks explicitely by specifying `mock_with` either in your `spec_helper.rb` like so:
There are two major mocking frameworks in modules test suites today: [mocha](https://rubygems.org/gems/mocha) and [rspec-mocks](https://rubygems.org/gems/rspec-mocks). We recommend that you choose rspec-mocks explicitly by specifying `mock_with`, either in your `spec_helper.rb` like so:

```
RSpec.configure do |c|
Expand All @@ -475,7 +475,7 @@ end
require 'puppetlabs_spec_helper/module_spec_helper'
```

or by using the PDK's [`mock_with` option in `.sync.yml`](https://github.com/puppetlabs/pdk-templates#specspec_helperrb) and `pdk update`.
or by using Puppet Development Kit's [`mock_with` option in `.sync.yml`](https://github.com/puppetlabs/pdk-templates#specspec_helperrb) and `pdk update`.

You can also continue to use mocha by explicitly specifying `:mocha`, following the [mocha documentation](http://gofreerange.com/mocha/docs/).

Expand Down

0 comments on commit 757e875

Please sign in to comment.