X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/34ac761cb1fd2b7b9438765d14ded85dfab0453b..6189e6d37b6f05bee599fb54cfb9e29f81665d75:/services/api/test/unit/owner_test.rb diff --git a/services/api/test/unit/owner_test.rb b/services/api/test/unit/owner_test.rb index df96f31255..c177bc3901 100644 --- a/services/api/test/unit/owner_test.rb +++ b/services/api/test/unit/owner_test.rb @@ -42,7 +42,7 @@ class OwnerTest < ActiveSupport::TestCase test "change owner from legit #{o_class} to legit #{new_o_class} owner" do o = o_class.create i = Specimen.create(owner_uuid: o.uuid) - new_o = o_class.create + new_o = new_o_class.create assert(Specimen.where(uuid: i.uuid).any?, "new item should really be in DB") assert(i.update_attributes(owner_uuid: new_o.uuid), @@ -73,7 +73,7 @@ class OwnerTest < ActiveSupport::TestCase end end - ['users(:active)', 'groups(:afolder)'].each do |ofixt| + ['users(:active)', 'groups(:aproject)'].each do |ofixt| test "delete #{ofixt} that owns other objects" do o = eval ofixt assert_equal(true, Specimen.where(owner_uuid: o.uuid).any?,