Merge branch 'master' into 9767-workflows-in-chooser
[arvados.git] / services / api / test / unit / container_request_test.rb
index 0b96155b8569a156e4fa17fee4384a19f6ddaa7c..b0c55c1276f02eafdd7558779c8847d62cca074d 100644 (file)
@@ -81,6 +81,13 @@ class ContainerRequestTest < ActiveSupport::TestCase
     end
   end
 
+  test "Update from fixture" do
+    set_user_from_auth :active
+    cr = ContainerRequest.find_by_uuid(container_requests(:running).uuid)
+    cr.update_attributes!(description: "New description")
+    assert_equal "New description", cr.description
+  end
+
   test "Update with valid runtime constraints" do
       set_user_from_auth :active
       cr = create_minimal_req!(state: "Uncommitted", priority: 1)