search for: unrefactorable

Displaying 2 results from an estimated 2 matches for "unrefactorable".

2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (eg it has a block with a missing ''end'' statement), I''m experiencing WSODs - the browser reports a lost network connection, rather than the helpful compilation error that we used to have. When the compilation fails, ActionView#compile_template raises this error : TemplateError.new(find_base_path_for(file_name || template), file_name ||
2006 Dec 08
0
RSpec impressions
...oncentrate on implementing specific behaviours. In Test::Unit, I tend to write tests around the private methods of the object under test. I enjoyed thinking about the library through its public API. A few months ago, I made an attempt at writing this library with Test::Unit, and results were nigh unrefactorable. Writing from scratch with RSpec gave me a faster library, in less time, with less code, while worrying less about code duplication. With RSpec, I build up behaviour, a little at a time, filling in the methods only when I need to. More taste, less filling. The full length of my ramblings are post...