Displaying 1 result from an estimated 1 matches for "render_template_without_gettext_fix".
2007 May 28
1
Rails matcher render_template is wrong when using GetText, looking for flexible solution
...uot; + "_" + 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_template
def render_template(path)
path += "_" + GetText.locale.to_general
render_template_without_gettext_fix(path)
end
end
But that breaks any spec that calls integrate_views. And I can''t see
how I can check the status of integrate_views in this override, since
it...