Browse files

Avoid using instance variables on tests.

* From discussion in issue #2.
  • Loading branch information...
1 parent 3e25f1f commit 6266bbcae9c4afeba7385ca553375caa09f959a0 @jferris jferris committed Aug 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
1 README.md
@@ -142,6 +142,7 @@ Testing
* Use one factories.rb file per project.
* Use an `it` example for each execution path through the method.
* Use [stubs and spies](http://goo.gl/EciDJ) (not mocks) in isolated tests.
+* Avoid using instance variables in tests.
[Sample](https://github.com/thoughtbot/style-guide/blob/master/rspec-sample.rb)

0 comments on commit 6266bbc

Please sign in to comment.