[ARVADOS] updated: 65ab86d8af08548d0f264dfc7f462fba0880ea7e

Git user git at public.curoverse.com
Tue Nov 22 17:42:15 EST 2016


Summary of changes:
 apps/workbench/test/controllers/disabled_api_test.rb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

       via  65ab86d8af08548d0f264dfc7f462fba0880ea7e (commit)
      from  726becee14c0f4aaa1b0f72fe33a16ee1de7ccd4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 65ab86d8af08548d0f264dfc7f462fba0880ea7e
Author: radhika <radhika at curoverse.com>
Date:   Tue Nov 22 17:41:33 2016 -0500

    10524: update test assertions

diff --git a/apps/workbench/test/controllers/disabled_api_test.rb b/apps/workbench/test/controllers/disabled_api_test.rb
index 1154e4d..47276c0 100644
--- a/apps/workbench/test/controllers/disabled_api_test.rb
+++ b/apps/workbench/test/controllers/disabled_api_test.rb
@@ -13,7 +13,6 @@ class DisabledApiTest < ActionController::TestCase
     assert_includes @response.body, "zzzzz-xvhdp-cr4runningcntnr" # expect crs
     assert_not_includes @response.body, "zzzzz-d1hrv-"   # expect no pipelines
     assert_includes @response.body, "Run a process"
-    assert_not_includes @response.body, "Run a pipeline"
   end
 
   [
@@ -35,6 +34,7 @@ class DisabledApiTest < ActionController::TestCase
   end
 
   [
+    :admin,
     :active,
     nil,
   ].each do |user|
@@ -60,8 +60,7 @@ class DisabledApiTest < ActionController::TestCase
       assert_includes resp, "href=\"#Pipelines_and_processes\""
       assert_includes resp, "href=\"#Workflows\""
       assert_not_includes resp, "href=\"#Pipeline_templates\""
-      assert_includes @response.body, "Run a process"
-      assert_not_includes @response.body, "Run a pipeline"
+      assert_includes @response.body, "Run a process" if user == :admin
     end
   end
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list