Added to rails test for have_tag
This commit is contained in:
parent
6e7609e01c
commit
0a021059d6
|
@ -1,4 +1,4 @@
|
|||
<h1>Webrat Form</h1>
|
||||
<h1 id='form_title' class='form title'>Webrat Form</h1>
|
||||
|
||||
<% form_tag submit_path do %>
|
||||
<label>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue