Skip to content

Commit

Permalink
Added note on testing to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwinM committed Dec 11, 2011
1 parent af8d705 commit f75d227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -94,6 +94,10 @@ If you need to validate for uniqueness, chances are that you want to scope this

All options available to Rails' own `validates_uniqueness_of` are also available to this method.

Note on testing
---------------
Whenever you set the `current_tenant` in your tests, either through integration tests or directly by calling `ActsAsTenant.current_tenant = some_tenant`, make sure to clean up the tenant after each test by calling `ActsAsTenant.current_tenant = nil`.

To Do
-----
* Change the tests to Test::Unit so I can easily add some controller tests.
Expand Down

0 comments on commit f75d227

Please sign in to comment.