Fix GitHub importer spec

parent 1a41a89c
......@@ -16,8 +16,11 @@ module Gitlab
def create!
params = attributes.except(:project)
service = ::Labels::CreateService.new(project.owner, project, params)
label = service.execute
service.execute
raise ActiveRecord::RecordInvalid.new(label) unless label.persisted?
label
end
private
......
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