diff options
Diffstat (limited to 'spec/lib/gitlab/import_export/import_export_spec.rb')
-rw-r--r-- | spec/lib/gitlab/import_export/import_export_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |