search for: articleviewtest

Displaying 1 result from an estimated 1 matches for "articleviewtest".

2005 Nov 16
19
Concerns over Rails' handling of tests
...ion in different contexts. So, as an example, say you had an ArticleController with view, post and create actions. The post action simply displays the form which submits to the create action. Now, instead of having one large ArticleControllerTest, it would make far more sense to break it down into ArticleViewTest, ArticlePostTest, FailedArticleCreate test and SuccessfulArticleCreate, because each of those represent different contexts, or fixtures. I''m quite keen on Ben Griffiths'' testing approach outlined here<http://www.reevoo.com/blogs/bengriffiths/2005/06/24/a-test-by-any-other-name...