1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Haml] Make tests pass with Rails 3 rc 2.

This commit is contained in:
Nathan Weizenbaum 2010-08-29 21:48:21 -07:00
parent 626c906a62
commit 2108821480

View file

@ -76,7 +76,15 @@ class Test::Unit::TestCase
def rails_form_opener
return '' unless Haml::Util.ap_geq?("3.0.0.rc")
return '<div style="margin:0;padding:0;display:inline"><input name="_snowman" type="hidden" value="&#9731;" /></div>'
if Haml::Util.ap_geq?("3.0.0.rc2")
encoding = 'utf8'
char = '&#x2713;'
else
encoding = '_snowman'
char = '&#9731;'
end
return '<div style="margin:0;padding:0;display:inline"><input name="' + encoding +
'" type="hidden" value="' + char + '" /></div>'
end
def assert_raise_message(klass, message)