rails/rails — pull request #5767 by HugoLnx (2012-04-07 04:01:53+00:00)
Title: fixing assert_template bug when template matches expected, but not ends with

Hello guys, I discover that when we rendering "test/hello_world" and asserting with "test" or "st/he" or anything that matches, the assertion pass.
I think this isn't a good behavior, so I changed to pass when ends with expected, now will pass with "hello_world" or "world" for example.
What do you think about don't pass with half folder or file name? I thinking in when rendering "test/bla/hello_world", the only correct strings would be: "hello_world", "bla/hello_world" and "test/bla/hello_world"
If you guys like the idea I can implement.