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:
nex3 2007-01-19 02:54:40 +00:00
parent 867948bdf4
commit 50890f523a
4 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
begin
require 'rubygems'
require 'active_support'
require 'action_controller'
require 'action_view'
action_view_included = true
rescue LoadError

View File

@ -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

View File

@ -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

View File

@ -8,7 +8,7 @@
%li= i
%h1 I can catch errors!
- begin
- Foo.silly
- String.silly
- rescue NameError => e
= "Oh no! \"#{e}\" happened!"
%p