3618: accommodate new fixture indexing in pipeline_instance tests
authorPhil Hodgson <bitbucket@philhodgson.net>
Tue, 4 Nov 2014 11:32:55 +0000 (12:32 +0100)
committerPhil Hodgson <bitbucket@philhodgson.net>
Tue, 4 Nov 2014 11:32:55 +0000 (12:32 +0100)
apps/workbench/test/integration/pipeline_instances_test.rb

index ee4a660f550a7e4c064b5adeaf7851d54eb1412e..023771ae96293ab16ef46eaebe56b80a87b843c0 100644 (file)
@@ -340,11 +340,11 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
   end
 
   [
-    [0, 0], # run time 0 minutes
-    [9, 17*60*60 + 51*60], # run time 17 hours and 51 minutes
+    [1, 1*60*60 + 59*60], # run time 1 hour 59 minutes
+    [10, 19*60*60 + 50*60], # run time 19 hours and 50 minutes
   ].each do |index, run_time|
     test "pipeline start and finish time display #{index}" do
-      visit page_with_token("user1_with_load", "/pipeline_instances/zzzzz-d1hrv-10pipelines0#{index.to_s.rjust(3, '0')}")
+      visit page_with_token("user1_with_load", "/pipeline_instances/zzzzz-d1hrv-10pipelines0#{(index).to_s.rjust(3, '0')}")
 
       assert page.has_text? 'This pipeline started at'
       page_text = page.text