Skip to content

Commit

Permalink
adding missing test for text area value before type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
egilburg committed Jul 19, 2014
1 parent e89ef3c commit afc9284
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions actionview/test/template/form_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,13 @@ def test_text_area_with_nil_alternate_value
)
end

def test_text_area_with_value_before_type_cast
assert_dom_equal(
%{<textarea id="post_id" name="post[id]">\n123</textarea>},
text_area("post", "id")
)
end

def test_text_area_with_html_entities
@post.body = "The HTML Entity for & is &amp;"
assert_dom_equal(
Expand Down

0 comments on commit afc9284

Please sign in to comment.