Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tags.rb « fixtures « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fdf85844ee242b5fc71f0a21a26642610473c37f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Tags (JavaScript fixtures)' do
  include JavaScriptFixturesHelpers

  let_it_be(:project) { create(:project, :repository, path: 'tags-project') }
  let_it_be(:user) { project.first_owner }

  after(:all) do
    remove_repository(project)
  end

  describe API::Tags, '(JavaScript fixtures)', type: :request do
    include ApiHelpers

    it 'api/tags/tags.json' do
      get api("/projects/#{project.id}/repository/tags", user)

      expect(response).to be_successful
    end
  end
end