search for: to_general

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

Did you mean: _general
2007 May 28
1
Rails matcher render_template is wrong when using GetText, looking for flexible solution
...stub!(:file_exists?).and_return(true) Now I''m not sure what would be the best solution. Since I know about this, I could simply add the same extension as GetText does to the expected rendered view path: response.should render_template("index" + "_" + GetText.locale.to_general) But adding this to every check would be ugly and not very DRY. I''ve tried to override the render_template matcher in my SpecHelper with a method doing the addition before passing it on to the matcher. module Spec::Rails::Matchers alias render_template_without_gettext_fix render_templ...