From 647eb4cb6fc6c60c1c6f3839b0decb7cf8b58510 Mon Sep 17 00:00:00 2001 From: Amos King Date: Tue, 13 Jan 2009 22:43:31 -0600 Subject: [PATCH] add test for assert_xpath --- spec/integration/rails/test/integration/webrat_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/integration/rails/test/integration/webrat_test.rb b/spec/integration/rails/test/integration/webrat_test.rb index 7236eb0..81f8f5a 100644 --- a/spec/integration/rails/test/integration/webrat_test.rb +++ b/spec/integration/rails/test/integration/webrat_test.rb @@ -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