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:
parent
626c906a62
commit
2108821480
1 changed files with 9 additions and 1 deletions
|
@ -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="☃" /></div>'
|
||||
if Haml::Util.ap_geq?("3.0.0.rc2")
|
||||
encoding = 'utf8'
|
||||
char = '✓'
|
||||
else
|
||||
encoding = '_snowman'
|
||||
char = '☃'
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue