search for: articlecontrollertest

Displaying 3 results from an estimated 3 matches for "articlecontrollertest".

2006 May 11
12
Verifying Good Setup of RoR + PostgreSQL
I''ve been reading the RoR tutorials and wiki help stuff, but I''m stuck. :( I''ve got RoR installed properly and get the "Welcome aboard! You''re riding the rails." I have an "article" controller, "article" model, and both an "article" and "articles" views (one is a remnant, I think, and no longer needed) (the
2005 Nov 16
19
Concerns over Rails' handling of tests
...ld be to have a test case for each action, or even a testcase for each action 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://w...
2006 Mar 23
2
rails 1.1 and mysql errors
...the previous edge release (i froze several weeks ago, so I not sure what version that was). Has anyone else experienced these types errors with the new rails: I have several errors that are grouped around create and destroy commands the errors are similar, first the destroy: test_destroy_comment(ArticleControllerTest): ActiveRecord::StatementInvalid: Mysql::Error: #42000You have an error in your SQL syntax; check the manual that corresponds to your on for the right syntax to use near ''true = true - 1 WHERE (id = 1)'' at line 1: UPDATE articles SET true = true - 1 WHERE (id = 1) now the error o...