summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-12-16 17:44:22 +0100
committerRémy Coutable <remy@rymai.me>2016-12-19 17:35:51 +0100
commitab06313c36fc5856b2472d3dfcb966a8c6341d0b (patch)
treeea6d499de443ada8364337c194e1d08b4e28682f /spec/models
parente046e4c14d06a19cc30a679f4943c77b56ee6d0c (diff)
downloadgitlab-ce-ab06313c36fc5856b2472d3dfcb966a8c6341d0b.tar.gz
Add Project#gitea_import?22348-gitea-importer
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/project_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index ed6b2c6a22b..8779b399344 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -1458,6 +1458,18 @@ describe Project, models: true do
end
end
+ describe '#gitlab_project_import?' do
+ subject(:project) { build(:project, import_type: 'gitlab_project') }
+
+ it { expect(project.gitlab_project_import?).to be true }
+ end
+
+ describe '#gitea_import?' do
+ subject(:project) { build(:project, import_type: 'gitea') }
+
+ it { expect(project.gitea_import?).to be true }
+ end
+
describe '#lfs_enabled?' do
let(:project) { create(:project) }