Fix regexp in test for Rails 4.2 forms

This commit is contained in:
Norman Clarke 2014-12-01 10:51:16 -03:00
parent b0490a035e
commit f573f69af4
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ HAML
= form_for OpenStruct.new, url: 'foo', as: :post do |f|
= f.text_field :name
HAML
assert_match(/<div[^>]+><input/, rendered)
assert_match(/<(form|div)[^>]+><input/, rendered)
end
def test_pre