This commit is contained in:
James Lopez 2017-01-24 12:11:12 +01:00
parent e589c7e848
commit 6a2b976c66
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ module Gitlab
EXISTING_OBJECT_CHECK = %i[milestone milestones label labels project_label project_labels group_label group_labels].freeze
TOKEN_RESET_MODELS = %w[Ci::Trigger Ci::Build ProjectHook]
TOKEN_RESET_MODELS = %w[Ci::Trigger Ci::Build ProjectHook].freeze
def self.create(*args)
new(*args).create

View file

@ -203,11 +203,11 @@ describe Gitlab::ImportExport::ProjectTreeRestorer, services: true do
restored_project_json
end
it 'has a new CI triggers token' do
it 'has a new CI trigger token' do
expect(Ci::Trigger.where(token: 'cdbfasdf44a5958c83654733449e585')).to be_empty
end
it 'has a new CI triggers token' do
it 'has a new CI build token' do
expect(Ci::Build.where(token: 'abcd')).to be_empty
end
end