This commit is contained in:
Erik Michaels-Ober 2011-09-14 18:56:46 -07:00
parent ef1443bb33
commit 98eff20127
1 changed files with 1 additions and 2 deletions

View File

@ -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