added selenium test for assert_selector

This commit is contained in:
Amos King 2009-01-13 22:48:57 -06:00
parent fd860a2e6d
commit 652610381a
1 changed files with 5 additions and 0 deletions

View File

@ -40,4 +40,9 @@ class WebratTest < ActionController::IntegrationTest
visit root_path visit root_path
assert_have_xpath "//h1" assert_have_xpath "//h1"
end end
test "should be able to assert selector" do
visit root_path
assert_have_selector "h1"
end
end end