Commit 07b0615e authored by Shinya Maeda's avatar Shinya Maeda

Fixed typo and hash alighment

parent d1fae597
...@@ -128,7 +128,9 @@ describe Projects::PipelineSchedulesController do ...@@ -128,7 +128,9 @@ describe Projects::PipelineSchedulesController do
let(:action) do let(:action) do
proc do |user| proc do |user|
put :update, namespace_id: project.namespace.to_param, project_id: project, id: pipeline_schedule.id, put :update, namespace_id: project.namespace.to_param, project_id: project, id: pipeline_schedule.id,
schedule: { description: 'a' } schedule: {
description: 'a'
}
end end
end end
......
...@@ -25,7 +25,7 @@ module AccessMatchersForController ...@@ -25,7 +25,7 @@ module AccessMatchersForController
user = role user = role
sign_in(user) sign_in(user)
when *Gitlab::Access.sym_options_with_owner.keys # owner, master, developer, reporter, guest 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) sign_in(user)
else else
raise ArgumentError, "cannot emulate user #{role}" raise ArgumentError, "cannot emulate user #{role}"
...@@ -34,7 +34,7 @@ module AccessMatchersForController ...@@ -34,7 +34,7 @@ module AccessMatchersForController
user user
end 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 raise ArgumentError, "cannot emulate #{role} without membership parent" unless membership
if role == :owner && membership.owner if role == :owner && membership.owner
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment