Fixes specs for layout checking. (For rails ~> 3.2.14)

Template assertion has been fixed and improved in rails and was backported in 3.2.14. See https://github.com/rails/rails/pull/5808 for details.