Skip to content

Commit

Permalink
Added to rails test for have_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
adkron committed Jan 24, 2009
1 parent 6e7609e commit 0a02105
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/rails/app/views/webrat/form.html.erb
@@ -1,4 +1,4 @@
<h1>Webrat Form</h1>
<h1 id='form_title' class='form title'>Webrat Form</h1>

<% form_tag submit_path do %>
<label>
Expand Down
5 changes: 5 additions & 0 deletions spec/integration/rails/test/integration/webrat_test.rb
Expand Up @@ -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

0 comments on commit 0a02105

Please sign in to comment.