summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-01-24 12:11:12 +0100
committerJames Lopez <james@jameslopez.es>2017-01-30 12:34:32 +0100
commit6a2b976c66b17ec62575bfefda99221ccdc85e1e (patch)
tree2936fabf22ac2029b28c8033b97f371c4b3e89be
parente589c7e84854bd181d5059200e80f0b5c0b0e5f8 (diff)
downloadgitlab-ce-6a2b976c66b17ec62575bfefda99221ccdc85e1e.tar.gz
fix typo
-rw-r--r--lib/gitlab/import_export/relation_factory.rb2
-rw-r--r--spec/lib/gitlab/import_export/project_tree_restorer_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/import_export/relation_factory.rb b/lib/gitlab/import_export/relation_factory.rb
index 040a10011e2..8a44e78fb44 100644
--- a/lib/gitlab/import_export/relation_factory.rb
+++ b/lib/gitlab/import_export/relation_factory.rb
@@ -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
diff --git a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
index 75c8b997b4f..40d7d59f03b 100644
--- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
@@ -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