Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update invalid partial error message as per 04202a3

  • Loading branch information...
commit 319db7b189fe1f02268c99c9e9566312535c02ec 1 parent 06631b8
@vijaydev vijaydev authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/test/template/render_test.rb
View
8 actionpack/test/template/render_test.rb
@@ -153,15 +153,15 @@ def test_render_partial_with_locals_from_default
def test_render_partial_with_invalid_name
e = assert_raises(ArgumentError) { @view.render(:partial => "test/200") }
assert_equal "The partial name (test/200) is not a valid Ruby identifier; " +
- "make sure your partial name starts with a letter or underscore, " +
- "and is followed by any combinations of letters, numbers, or underscores.", e.message
+ "make sure your partial name starts with a lowercase letter or underscore, " +
+ "and is followed by any combination of letters, numbers and underscores.", e.message
end
def test_render_partial_with_missing_filename
e = assert_raises(ArgumentError) { @view.render(:partial => "test/") }
assert_equal "The partial name (test/) is not a valid Ruby identifier; " +
- "make sure your partial name starts with a letter or underscore, " +
- "and is followed by any combinations of letters, numbers, or underscores.", e.message
+ "make sure your partial name starts with a lowercase letter or underscore, " +
+ "and is followed by any combination of letters, numbers and underscores.", e.message
end
def test_render_partial_with_incompatible_object
Please sign in to comment.
Something went wrong with that request. Please try again.