Skip to content

Commit

Permalink
Merge pull request #303 from spilth/readme-testing-update
Browse files Browse the repository at this point in the history
Use rails_helper instead of spec_helper for disabling public_activity
  • Loading branch information
pokonski committed Jul 31, 2017
2 parents bdc7678 + c4daf1c commit 71b8b3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,10 @@ This structure is valid for activities with keys `"activity.article.create"` or

## Testing

For RSpec you can first disable `public_activity` and add the `test_helper` in
the `spec_helper.rb` with
For RSpec you can first disable `public_activity` and add the `test_helper` in `rails_helper.rb` with:

```ruby
#spec_helper.rb
#rails_helper.rb
require 'public_activity/testing'

PublicActivity.enabled = false
Expand Down

0 comments on commit 71b8b3a

Please sign in to comment.