1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

add test for locals passed to haml

This commit is contained in:
Konstantin Haase 2010-12-16 22:57:24 +01:00
parent f5b7e8859a
commit 7e80e3752e

View file

@ -89,6 +89,11 @@ class HAMLTest < Test::Unit::TestCase
assert ok?
assert_match(/^<!DOCTYPE html PUBLIC (.*) HTML 4.01/, body)
end
it "is possible to pass locals" do
haml_app { haml "= foo", :locals => { :foo => 'bar' }}
assert_equal "bar\n", body
end
end
rescue
warn "#{$!.to_s}: skipping haml tests"