[ARVADOS] updated: 8b7706d2ab2cbcdf87a3935d987ffaf9befb8df8

Git user git at public.curoverse.com
Tue Aug 2 11:26:49 EDT 2016


Summary of changes:
 services/api/test/unit/container_request_test.rb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

       via  8b7706d2ab2cbcdf87a3935d987ffaf9befb8df8 (commit)
      from  73c06c1a5af0e62fb937304fa6bee19225b9d7f6 (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 8b7706d2ab2cbcdf87a3935d987ffaf9befb8df8
Author: Lucas Di Pentima <lucas at curoverse.com>
Date:   Tue Aug 2 12:26:03 2016 -0300

    9617: Corrected variable & test naming

diff --git a/services/api/test/unit/container_request_test.rb b/services/api/test/unit/container_request_test.rb
index 97663cf..0b96155 100644
--- a/services/api/test/unit/container_request_test.rb
+++ b/services/api/test/unit/container_request_test.rb
@@ -58,30 +58,30 @@ class ContainerRequestTest < ActiveSupport::TestCase
     {"vcpus" => 1, "ram" => nil},
     {"vcpus" => 0, "ram" => 123},
     {"vcpus" => "1", "ram" => "123"}
-  ].each do |invalid_constraint|
-    test "Create with #{invalid_constraint}" do
+  ].each do |invalid_constraints|
+    test "Create with #{invalid_constraints}" do
       set_user_from_auth :active
       assert_raises(ActiveRecord::RecordInvalid) do
         cr = create_minimal_req!(state: "Committed",
                                  priority: 1,
-                                 runtime_constraints: invalid_constraint)
+                                 runtime_constraints: invalid_constraints)
         cr.save!
       end
     end
 
-    test "Update with #{invalid_constraint}" do
+    test "Update with #{invalid_constraints}" do
       set_user_from_auth :active
       cr = create_minimal_req!(state: "Uncommitted", priority: 1)
       cr.save!
       assert_raises(ActiveRecord::RecordInvalid) do
         cr = ContainerRequest.find_by_uuid cr.uuid
         cr.update_attributes!(state: "Committed",
-                              runtime_constraints: invalid_constraint)
+                              runtime_constraints: invalid_constraints)
       end
     end
   end
 
-  test "Update with valid constraint" do
+  test "Update with valid runtime constraints" do
       set_user_from_auth :active
       cr = create_minimal_req!(state: "Uncommitted", priority: 1)
       cr.save!

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list