From 652610381a6c0889b421eeacda7a873f3dd19e80 Mon Sep 17 00:00:00 2001 From: Amos King Date: Tue, 13 Jan 2009 22:48:57 -0600 Subject: [PATCH] added selenium test for assert_selector --- spec/integration/rails/test/selenium/webrat_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/integration/rails/test/selenium/webrat_test.rb b/spec/integration/rails/test/selenium/webrat_test.rb index 81f8f5a..16d027d 100644 --- a/spec/integration/rails/test/selenium/webrat_test.rb +++ b/spec/integration/rails/test/selenium/webrat_test.rb @@ -40,4 +40,9 @@ class WebratTest < ActionController::IntegrationTest visit root_path assert_have_xpath "//h1" end + + test "should be able to assert selector" do + visit root_path + assert_have_selector "h1" + end end