diff --git a/plugins/automation/spec/scripts/add_user_to_group_through_custom_field_spec.rb b/plugins/automation/spec/scripts/add_user_to_group_through_custom_field_spec.rb index b331338bd1b..4043772a975 100644 --- a/plugins/automation/spec/scripts/add_user_to_group_through_custom_field_spec.rb +++ b/plugins/automation/spec/scripts/add_user_to_group_through_custom_field_spec.rb @@ -140,7 +140,7 @@ describe "AddUserToGroupThroughCustomField" do fab!(:iowa) { Fabricate(:group, full_name: "Iowa") } fab!(:missouri) { Fabricate(:group, full_name: "Missouri") } - fab!(:user1) { Fabricate(:user, id: bangalore.id) } + fab!(:user1) { Fabricate(:user) } fab!(:user2) { Fabricate(:user) } fab!(:user3) { Fabricate(:user) } fab!(:user4) { Fabricate(:user) }