search for: localized_path

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

2007 May 28
1
Rails matcher render_template is wrong when using GetText, looking for flexible solution
...dered (I don''t have any "index_en.rhtml"). The source of this mismatch is that GetText overrides ActionView::Base.render_file, testing each possible localized template path and passes the first existing path to the original render_file method : return render_file_without_locale(localized_path, use_full_path, local_assigns) if file_exists? localized_path This line always evaluates to true in RSpec context, but to false in the application. After a lot of digging I found out that RspecOnRails overrides file_exists? with a stub when integrate_views is not set (lib/spec/rails/dsl/behaviou...