From 21088214803e03c278db2eb5981abbc955f1f16f Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Sun, 29 Aug 2010 21:48:21 -0700 Subject: [PATCH] [Haml] Make tests pass with Rails 3 rc 2. --- test/test_helper.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 06e86d67..d3691aa1 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -76,7 +76,15 @@ class Test::Unit::TestCase def rails_form_opener return '' unless Haml::Util.ap_geq?("3.0.0.rc") - return '
' + if Haml::Util.ap_geq?("3.0.0.rc2") + encoding = 'utf8' + char = '✓' + else + encoding = '_snowman' + char = '☃' + end + return '
' end def assert_raise_message(klass, message)