This project is archived and is in readonly mode.
ActionView::Template doesn't support multipart formats with locale
-
Eloy Duran
- Assigned user set to josh
I couldn't figure out where the tests for ActionView::Template are located thus lack of thereof.
You are right, there are none yet. Please add a failing unit test which tests the #split method.
I can imagine something like the following (untested code):
test "filename parsing" do ["template.en.text.plain.erb", :name => 'template', :extension => 'erb', :format => 'text', :locale => 'en'].each do |file, expected| template = ActionView::Template.new(file) expected.each do |name, value| assert_equal value, template.send(name) end end end -
Mateusz Drożdżyński
I'd be glad to add a test to cover my patch yet I still can't find any reasonable file to put it in. Any suggestions? I couldn't find any other tests that would test the #split method.
-
thedarkone
I rewrote extension parsing in #2315 ActionView::Template extension processing bug. Mateusz, your issue should be automaticaly fixed as well.
-
Repository
- State changed from new to resolved
(from [6a1267a0b12560a752ebfb443194de1a0ab3bef5]) Fix template extension parsing. [#2315 ActionView::Template extension processing bug state:resolved] [#2284 ActionView::Template doesn't support multipart formats with locale state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
-
Repository
(from [ae9f258e03c9fd5088da12c1c6cd216cc89a01f7]) Fix template extension parsing. [#2315 ActionView::Template extension processing bug state:resolved] [#2284 ActionView::Template doesn't support multipart formats with locale state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
