Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a better example of how to stub a helper method in a view spec
When I upgraded to Rails 3.0.9 I ran into an issue where controller.singleton_class.class_eval was leaving behind cruft for other tests to run into. We exploit the fact that helper methods are imported into the view class to stub those helpers.
- Loading branch information