Skip to content

Instantly share code, notes, and snippets.

@onethirtyfive
Created March 21, 2011 03:28
Show Gist options
  • Save onethirtyfive/878967 to your computer and use it in GitHub Desktop.
Save onethirtyfive/878967 to your computer and use it in GitHub Desktop.
test: for #content_tag method should support tags with haml. (TestTagHelpers) [test/test_tag_helpers.rb:52]:
expected following output to contain a <p class='test' id='test1'>Test 1</p> tag:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<style type="text/css">
body { text-align:center;font-family:helvetica,arial;font-size:22px;
color:#888;margin:20px}
#c {margin:0 auto;width:500px;text-align:left}
</style>
</head>
<body>
<h2>Sinatra doesn't know this ditty.</h2>
<img src="/__sinatra__/404.png"><div id="c">
Try this:
<pre>get '/haml/content_tag' do
"Hello World"
end</pre>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment