[ARVADOS] updated: e93aaa7abf13b71c87c3ba1fea7a7a5d53df1095

Git user git at public.curoverse.com
Fri Aug 26 07:52:42 EDT 2016


Summary of changes:
 .../test/integration/container_requests_test.rb          | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

       via  e93aaa7abf13b71c87c3ba1fea7a7a5d53df1095 (commit)
      from  f35ca630699460653f03702afec4a57866130421 (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 e93aaa7abf13b71c87c3ba1fea7a7a5d53df1095
Author: radhika <radhika at curoverse.com>
Date:   Fri Aug 26 07:52:18 2016 -0400

    9043: minor test tweaks

diff --git a/apps/workbench/test/integration/container_requests_test.rb b/apps/workbench/test/integration/container_requests_test.rb
index 86b8b05..0f9495b 100644
--- a/apps/workbench/test/integration/container_requests_test.rb
+++ b/apps/workbench/test/integration/container_requests_test.rb
@@ -11,11 +11,9 @@ class ContainerRequestsTest < ActionDispatch::IntegrationTest
     ['ex_int', 12],
     ['ex_int_opt', 12],
     ['ex_long', 12],
-    ['ex_double', 12.34],
-    ['ex_double', 'abc', true, 0.0],
-    ['ex_float', 12.34],
-    ['ex_float', 'abc', true, 0.0],
-  ].each do |input_id, input_value, need_refresh, expected|
+    ['ex_double', '12.34', 12.34],
+    ['ex_float', '12.34', 12.34],
+  ].each do |input_id, input_value, expected_value|
     test "set input #{input_id} with #{input_value}" do
       request_uuid = api_fixture("container_requests", "uncommitted", "uuid")
       visit page_with_token("active", "/container_requests/#{request_uuid}")
@@ -24,11 +22,7 @@ class ContainerRequestsTest < ActionDispatch::IntegrationTest
       find(".editable-input input").set(input_value)
       find("#editable-submit").click
       assert_no_selector(".editable-popup")
-      assert_selector(selector, text: input_value)
-      if need_refresh
-        visit page_with_token("active", "/container_requests/#{request_uuid}")
-        assert_selector(selector, text: expected)
-      end
+      assert_selector(selector, text: expected_value || input_value)
     end
   end
 
@@ -62,7 +56,7 @@ class ContainerRequestsTest < ActionDispatch::IntegrationTest
     ['directory_type'],
     ['file_type'],
   ].each do |type|
-    test "select input for #{type}" do
+    test "select value for #{type} input" do
       request_uuid = api_fixture("container_requests", "uncommitted-with-directory-input", "uuid")
       visit page_with_token("active", "/container_requests/#{request_uuid}")
       assert_text 'Provide a value for the following parameter'

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list