spec/haml_spec.rb in rail-0.0.5 vs spec/haml_spec.rb in rail-0.0.6

- old
+ new

@@ -37,6 +37,24 @@ <h1>Hello</h1> </body> </html> BODY end + + it 'handles layouts' do + controller = Controller.new do + config.compress = false + end + body = controller.process('/articles/about') + assert_equal body.strip, <<-BODY.strip +<!DOCTYPE html> +<html> + <head> + <title>Hello</title> + </head> + <body> + <h1>About</h1> + </body> +</html> + BODY + end end