From 98eff20127dae62197e0d877aa9514d88db9f000 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Wed, 14 Sep 2011 18:56:46 -0700 Subject: [PATCH] Fix test --- test/functional/info_window_controller_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/functional/info_window_controller_test.rb b/test/functional/info_window_controller_test.rb index b7ecda7..0fe28bf 100644 --- a/test/functional/info_window_controller_test.rb +++ b/test/functional/info_window_controller_test.rb @@ -53,8 +53,7 @@ class InfoWindowControllerTest < ActionController::TestCase assert_not_nil assigns :hydrant assert_response :success assert_template 'users/profile' - assert_select 'h2', "This hydrant has been adopted by #{@user.name}" - assert_select 'h3', "of #{@user.organization}" + assert_select 'h2', /This hydrant has been adopted\s+by #{@user.name}\s+of #{@user.organization}/ end test 'should show adoption form if hydrant is not adopted' do