diff options
Diffstat (limited to 'spec/graphql/mutations')
-rw-r--r-- | spec/graphql/mutations/alert_management/alerts/todo/create_spec.rb | 2 | ||||
-rw-r--r-- | spec/graphql/mutations/issues/create_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/graphql/mutations/alert_management/alerts/todo/create_spec.rb b/spec/graphql/mutations/alert_management/alerts/todo/create_spec.rb index 8ec99070c91..ea5e21ec4b8 100644 --- a/spec/graphql/mutations/alert_management/alerts/todo/create_spec.rb +++ b/spec/graphql/mutations/alert_management/alerts/todo/create_spec.rb @@ -8,7 +8,7 @@ RSpec.describe Mutations::AlertManagement::Alerts::Todo::Create do let_it_be(:alert) { create(:alert_management_alert) } let_it_be(:project) { alert.project } - let(:current_user) { project.owner } + let(:current_user) { project.first_owner } let(:args) { { project_path: project.full_path, iid: alert.iid } } diff --git a/spec/graphql/mutations/issues/create_spec.rb b/spec/graphql/mutations/issues/create_spec.rb index 825d04ff827..e3094e84703 100644 --- a/spec/graphql/mutations/issues/create_spec.rb +++ b/spec/graphql/mutations/issues/create_spec.rb @@ -121,7 +121,7 @@ RSpec.describe Mutations::Issues::Create do end context 'when creating an issue as owner' do - let_it_be(:user) { project.owner } + let_it_be(:user) { project.first_owner } before do mutation_params.merge!(special_params) |