add test for assert_xpath
This commit is contained in:
parent
2d065e8a2d
commit
647eb4cb6f
|
@ -35,4 +35,9 @@ class WebratTest < ActionController::IntegrationTest
|
||||||
click_link "link_id"
|
click_link "link_id"
|
||||||
assert_contain("Webrat Form")
|
assert_contain("Webrat Form")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "should be able to assert xpath" do
|
||||||
|
visit root_path
|
||||||
|
assert_have_xpath "//h1"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue