Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add test for locals passed to haml

  • Loading branch information...
commit 19696507b3a57446808793af88fa33a6c386bd1e 1 parent 36132d6
@rkh rkh authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/haml_test.rb
View
5 test/haml_test.rb
@@ -89,6 +89,11 @@ def haml_app(&block)
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"
Please sign in to comment.
Something went wrong with that request. Please try again.