search for: controllertestcase

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

2006 Jun 17
0
Some Rails and ZenTest questions... [long]
...ases -- I aggressively refactor test cases, along the lines of Astel''s book, so I''ll commonly have 3-6 test cases (classes) per controller. Eric Hodel has already helped me figure out how to use the @controller_class_name variable in an abstract intermediate class between ControllerTestCase and my test cases to let Test::Rails::ControllerTestCase resolve the file->class mapping. However this code is getting repetitive between controller trees def setup return if convert_classname == File.basename (__FILE__,"_abstract.rb") @controller_class_name = Fil...
2006 Apr 23
13
post() to other controller in functional test?
In a functional test, I want to call an action in another controller (a login) before testing things in the current controller. As far as I can tell from the extremely sparse documentation and the AWDR book, this seems to be impossible. The post() functions takes an action argument only, and that''s that. Surely I must be misunderstanding things? -- Calle Dybedahl
2006 May 04
6
second assert_tag failling in rails integration test
Hi all, I''m fairly new to rails and ruby, but I''ve come across an interesting glitch and I''m not sure whether I''ve just got something wrong with my assumptions or if it really is an error in the underlying framework... I''ve created a bare-bones set of tests to show you where the problem is. What follows are the steps I went through to reproduce the