rails/rails — pull request #17995 by jethroo (2014-12-10 23:50:45+00:00)
Title: assert template should raise ArgumentError for unsupported layout types

fixes that `assert_template(layout: 1)` will not fail (false positive), also tried to refactor `assert_template` by splitting up in smaller chunks covered in private methods. Stopped at :partial since it not seemed to be covered by tests.