From 55cc27092078a78847a2b0230e8782c744e7fff2 Mon Sep 17 00:00:00 2001 From: radhika Date: Fri, 17 Oct 2014 20:37:34 -0400 Subject: [PATCH] 4054: minor test update --- apps/workbench/test/integration/projects_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb index e86f45a7c4..0922749962 100644 --- a/apps/workbench/test/integration/projects_test.rb +++ b/apps/workbench/test/integration/projects_test.rb @@ -194,7 +194,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest find(".selectable", text: name).click assert(has_no_selector?(".modal-dialog-preview-pane"), "preview pane available in sharing dialog") - if share_type == 'users' + if share_type == 'users' and obj and obj['email'] assert(page.has_text?(obj['email']), "Did not find user's email") end assert_raises(Capybara::ElementNotFound, -- 2.30.2