From 83731155d997ae24c7e0cd5ffa6f0dba41bec6dc Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 6 Mar 2020 18:08:08 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/lib/gitlab/import_export/import_export_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/lib/gitlab/import_export/import_export_spec.rb') diff --git a/spec/lib/gitlab/import_export/import_export_spec.rb b/spec/lib/gitlab/import_export/import_export_spec.rb index 2ece0dd4b56..300ba66ee5b 100644 --- a/spec/lib/gitlab/import_export/import_export_spec.rb +++ b/spec/lib/gitlab/import_export/import_export_spec.rb @@ -21,4 +21,12 @@ describe Gitlab::ImportExport do expect(described_class.export_filename(exportable: project).length).to be < 70 end end + + describe '#snippet_repo_bundle_filename_for' do + let(:snippet) { build(:snippet, id: 1) } + + it 'generates the snippet bundle name' do + expect(described_class.snippet_repo_bundle_filename_for(snippet)).to eq "#{snippet.hexdigest}.bundle" + end + end end -- cgit v1.2.3