Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated README testing section

* Included reminders for users to require the correct files when
  testing controllers with RSpec.
  • Loading branch information...
commit 84e7e096d58048784e507f514eb176b567ec8b69 1 parent 3789042
@dyba dyba authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
12 README.md
@@ -171,6 +171,12 @@ describe UsersController do
end
```
+Don't forget to add the line below to your spec_helper.rb file:
+
+``` ruby
+require 'focused_controller/rspec_functional_helper'
+```
+
## Unit Testing ##
A better way to test your controllers is with unit tests. This involves
@@ -299,6 +305,12 @@ describe UsersController do
end
```
+Don't forget to add the line below to your spec_helper.rb file:
+
+``` ruby
+require 'focused_controller/rspec_helper'
+```
+
## Isolated unit tests ##
It is possible to completely decouple your focused controller tests from
Please sign in to comment.
Something went wrong with that request. Please try again.