diff --git a/spec/controllers/projects/pipeline_schedules_controller_spec.rb b/spec/controllers/projects/pipeline_schedules_controller_spec.rb index 714fd76cee0..40f339917ce 100644 --- a/spec/controllers/projects/pipeline_schedules_controller_spec.rb +++ b/spec/controllers/projects/pipeline_schedules_controller_spec.rb @@ -128,7 +128,9 @@ describe Projects::PipelineSchedulesController do let(:action) do proc do |user| put :update, namespace_id: project.namespace.to_param, project_id: project, id: pipeline_schedule.id, - schedule: { description: 'a' } + schedule: { + description: 'a' + } end end diff --git a/spec/support/matchers/access_matchers_for_controller.rb b/spec/support/matchers/access_matchers_for_controller.rb index 78a0cc0a45d..d9980ff2f98 100644 --- a/spec/support/matchers/access_matchers_for_controller.rb +++ b/spec/support/matchers/access_matchers_for_controller.rb @@ -25,7 +25,7 @@ module AccessMatchersForController user = role sign_in(user) when *Gitlab::Access.sym_options_with_owner.keys # owner, master, developer, reporter, guest - user = cerate_user_by_membership(role, membership) + user = create_user_by_membership(role, membership) sign_in(user) else raise ArgumentError, "cannot emulate user #{role}" @@ -34,7 +34,7 @@ module AccessMatchersForController user end - def cerate_user_by_membership(role, membership = nil) + def create_user_by_membership(role, membership = nil) raise ArgumentError, "cannot emulate #{role} without membership parent" unless membership if role == :owner && membership.owner