add test for assert_xpath

This commit is contained in:
Amos King 2009-01-13 22:43:31 -06:00
parent 2d065e8a2d
commit 647eb4cb6f

View File

@ -35,4 +35,9 @@ class WebratTest < ActionController::IntegrationTest
click_link "link_id"
assert_contain("Webrat Form")
end
test "should be able to assert xpath" do
visit root_path
assert_have_xpath "//h1"
end
end