From 1dd315ce1d0fa17e8ded0f22d344ab134eb4389c Mon Sep 17 00:00:00 2001 From: Simon Knight Date: Tue, 9 Feb 2016 13:29:42 +0000 Subject: [PATCH 1/2] Added clarity to documentation regarding where to place test helpers for functional tests --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fd1db053..41e02857 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,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 From a371f03c51ba3210640695533140c57f0f5b5590 Mon Sep 17 00:00:00 2001 From: Simon Knight Date: Wed, 10 Feb 2016 21:11:57 +0000 Subject: [PATCH 2/2] Update README.md Added formatting to file. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41e02857..50592c13 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,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 (make sure you place it out of scope of ActiveSupport::TestCase which is the default class inside of 'test/test_helper.rb): +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