public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
Fixed something to do with how the requires work. Requiring the 
ActiveSupport stuff earlier on.



git-svn-id: svn://hamptoncatlin.com/haml/trunk@56 
7063305b-7217-0410-af8c-cdc13e5119b9
hcatlin (author)
Mon Oct 02 16:37:49 -0700 2006
commit  f024b2b2135d30e61c954e900d520ab2ac3c1ede
tree    8cd58bd3b4779ac3883b896b9cb1cbe214fd6b0e
parent  d4a9a3271d49b25e18a911a91969f278f6e0f6f1
...
1
2
 
3
4
5
...
45
46
47
48
 
49
50
51
 
52
53
54
...
1
2
3
4
5
6
...
46
47
48
 
49
50
51
 
52
53
54
55
0
@@ -1,5 +1,6 @@
0
 require 'test/unit'
0
 require 'rubygems'
0
+require 'active_support'
0
 require 'action_view'
0
 
0
 require File.dirname(__FILE__) + '/../lib/haml/template'
0
@@ -45,10 +46,10 @@ class TemplateTest < Test::Unit::TestCase
0
 
0
   def test_instance_variables_should_work_inside_templates
0
     @base.instance_variable_set("@content_for_layout", 'something')
0
- assert_equal("<p>something</p>", render("%p= @content_for_layout").chomp)
0
+ assert_equal("<p>\n something\n</p>", render("%p= @content_for_layout").chomp)
0
     
0
     @base.instance_eval("@author = 'Hampton Catlin'")
0
- assert_equal("<div class='author'>Hampton Catlin</div>", render(".author= @author").chomp)
0
+ assert_equal("<div class='author'>\n Hampton Catlin\n</div>", render(".author= @author").chomp)
0
 
0
     @base.instance_eval("@author = 'Hampton'")
0
     assert_equal("Hampton", render("= @author").chomp)

Comments

    No one has commented yet.