mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fixes in trunk for Rails 1.2.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@289 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
867948bdf4
commit
50890f523a
4 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
begin
|
||||
require 'rubygems'
|
||||
require 'active_support'
|
||||
require 'action_controller'
|
||||
require 'action_view'
|
||||
action_view_included = true
|
||||
rescue LoadError
|
||||
|
|
|
@ -94,7 +94,7 @@ class HelperTest < Test::Unit::TestCase
|
|||
# two behaviors.
|
||||
|
||||
result = render("- form_tag 'foo' do\n %p bar\n %strong baz", :action_view)
|
||||
new_rails = "<form action=\"foo\" method=\"post\">\n <p>foo</p>\n</form>\n"
|
||||
new_rails = "<form action=\"foo\" method=\"post\">\n <p>bar</p>\n <strong>baz</strong>\n</form>"
|
||||
old_rails = ""
|
||||
assert(result == new_rails || result == old_rails)
|
||||
end
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<li>z</li>
|
||||
</ul>
|
||||
<h1>I can catch errors!</h1>
|
||||
Oh no! "uninitialized constant Foo" happened!
|
||||
Oh no! "undefined method `silly' for String:Class" happened!
|
||||
<p>
|
||||
"false" is:
|
||||
false
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
%li= i
|
||||
%h1 I can catch errors!
|
||||
- begin
|
||||
- Foo.silly
|
||||
- String.silly
|
||||
- rescue NameError => e
|
||||
= "Oh no! \"#{e}\" happened!"
|
||||
%p
|
||||
|
|
Loading…
Add table
Reference in a new issue