##// END OF EJS Templates
Fixed that some input fields are escaped on validation failures (#11027)....
Jean-Philippe Lang -
r9528:472d3a00a314
parent child
Show More
@@ -43,7 +43,7 module ActionView
43 43 end
44 44 end
45 45
46 ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
46 ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| html_tag || ''.html_safe }
47 47
48 48 require 'mail'
49 49
@@ -149,6 +149,7 class QueriesControllerTest < ActionController::TestCase
149 149 end
150 150 assert_response :success
151 151 assert_template 'new'
152 assert_select 'input[name=?]', 'query[name]'
152 153 end
153 154
154 155 def test_edit_global_public_query
General Comments 0
You need to be logged in to leave comments. Login now