summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-08-01 12:38:10 +0200
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-08-01 13:00:51 +0200
commit09974de3e3d6409e24786c116fc084c6d834fed8 (patch)
tree6078d00a08229946182fe9ad415dea36c4df0997 /spec/lib
parent74b58131d49ac1379cc8071b1df3867bdbf54eae (diff)
downloadgitlab-ce-09974de3e3d6409e24786c116fc084c6d834fed8.tar.gz
Create rake task to create project templates
First iteration, and some stuff is missing. But basically this rake task does a clone of a project we've pointed it to. Than creates a project on the GDK, which should be running in the background. This project is exported, after which we move that archive to the location we need it. We clean up by removing the generated project. The first idea was to export the project on .com too, however than we might run into ImportExport versions mismatch. This could've been circumvented by checkout out an older commit locally. This however is not needed yet, so we opted to not go this route yet, instead we will iterate on what we got.
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/project_template_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/project_template_spec.rb b/spec/lib/gitlab/project_template_spec.rb
index 5dc6059b49c..d95dab748fe 100644
--- a/spec/lib/gitlab/project_template_spec.rb
+++ b/spec/lib/gitlab/project_template_spec.rb
@@ -31,13 +31,13 @@ describe Gitlab::ProjectTemplate do
describe 'instance methods' do
subject { described_class.new('phoenix', 'Phoenix Framework') }
- it { is_expected.to respond_to(:logo_path, :file, :template_archive) }
+ it { is_expected.to respond_to(:logo_path, :file, :archive_path) }
end
describe 'validate all templates' do
described_class.all.each do |template|
it "#{template.name} has a valid archive" do
- archive = template.template_archive
+ archive = template.archive_path
logo = Rails.root.join("app/assets/images/#{template.logo_path}")
expect(File.exist?(archive)).to be(true)