Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated README testing section #5

Merged
merged 1 commit into from

2 participants

@dyba
  • Included reminders for users to require the correct files when testing controllers with RSpec.
@dyba dyba Updated README testing section
* Included reminders for users to require the correct files when
  testing controllers with RSpec.
84e7e09
@jonleighton jonleighton merged commit bdfee62 into jonleighton:master
@jonleighton
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 21, 2012
  1. @dyba

    Updated README testing section

    dyba authored
    * Included reminders for users to require the correct files when
      testing controllers with RSpec.
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.