summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/template/gitlab_ci_syntax_yml_template_spec.rb
blob: d1024019a9f52e8e21b4a74d97afaae7b97c22d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Template::GitlabCiSyntaxYmlTemplate do
  subject { described_class }

  describe '#content' do
    it 'loads the full file' do
      template = subject.new(Rails.root.join('lib/gitlab/ci/syntax_templates/Artifacts example.gitlab-ci.yml'))

      expect(template.content).to start_with('#')
    end
  end

  it_behaves_like 'file template shared examples', 'Artifacts example', '.gitlab-ci.yml'
end