Added to rails test for have_tag

This commit is contained in:
Amos King 2009-01-23 21:13:52 -06:00
parent 6e7609e01c
commit 0a021059d6
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<h1>Webrat Form</h1>
<h1 id='form_title' class='form title'>Webrat Form</h1>
<% form_tag submit_path do %>
<label>

View File

@ -66,4 +66,9 @@ class WebratTest < ActionController::IntegrationTest
visit root_path
assert_have_selector "h1"
end
test "should be able to assert have tag" do
visit root_path
assert_have_tag "h1"
end
end