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
Make trunk tests not break with Rails 2.0.1.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@689 
7063305b-7217-0410-af8c-cdc13e5119b9
nex3 (author)
Mon Dec 10 18:00:06 -0800 2007
commit  a4c5b79dfb5b6ccdf639b3df925e519dafbb8945
tree    4cbb093ce5a7c22a001a744656780cc0513177ed
parent  ce85654877656e1453030f8b723cc374e281ab5d
...
79
80
81
 
 
82
83
84
...
79
80
81
82
83
84
85
86
0
@@ -79,6 +79,8 @@ class HelperTest < Test::Unit::TestCase
0
   end
0
   
0
   def test_form_tag
0
+ # This is usually provided by ActionController::Base.
0
+ def @base.protect_against_forgery?; false; end
0
     result = render("- form_tag 'foo' do\n %p bar\n %strong baz", :action_view)
0
     should_be = "<form action=\"foo\" method=\"post\">\n <p>bar</p>\n <strong>baz</strong>\n</form>\n"
0
     assert_equal(should_be, result)
...
2
3
4
5
6
7
 
8
9
10
...
30
31
32
 
 
 
 
33
34
35
...
2
3
4
 
 
 
5
6
7
8
...
28
29
30
31
32
33
34
35
36
37
0
@@ -2,9 +2,7 @@
0
 
0
 require 'test/unit'
0
 require 'rubygems'
0
-require 'active_support'
0
-require 'action_controller'
0
-require 'action_view'
0
+require 'action_pack'
0
 
0
 require File.dirname(__FILE__) + '/../../lib/haml'
0
 require 'haml/template'
0
@@ -30,6 +28,10 @@ class TemplateTest < Test::Unit::TestCase
0
     Haml::Template.options = { :filters => { 'test'=>TestFilter } }
0
     @base = ActionView::Base.new(File.dirname(__FILE__) + "/templates/", {'article' => Article.new, 'foo' => 'value one'})
0
     @base.send(:evaluate_assigns)
0
+
0
+ # This is used by form_for.
0
+ # It's usually provided by ActionController::Base.
0
+ def @base.protect_against_forgery?; false; end
0
   end
0
 
0
   def render(text)

Comments

    No one has commented yet.