Merge pull request #3941 from SimonDKnight/FixDocumentationTestHelpers

Added clarity to documentation regarding where to place test helpers …
This commit is contained in:
George Guimarães
2016-02-10 23:42:19 -02:00

View File

@@ -411,7 +411,7 @@ Caution: Devise Controllers inherit from ApplicationController. If your app uses
### Test helpers
Devise includes some test helpers for functional specs. In order to use them, you need to include Devise in your functional tests by adding the following to the bottom of your `test/test_helper.rb` file:
Devise includes some test helpers for functional specs. In order to use them, you need to include Devise in your functional tests by adding the following to the bottom of your `test/test_helper.rb` file (make sure you place it out of scope of `ActiveSupport::TestCase` which is the default class inside of `test/test_helper.rb`):
```ruby
class ActionController::TestCase