Fix regexp in test for Rails 4.2 forms
This commit is contained in:
parent
b0490a035e
commit
f573f69af4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue