Commit eb4f1557 authored by Livier's avatar Livier

Changed API spec files to describe the correct class

Restore changes for api spec files

Fix error in rspec Users

Delete extra space Repositories-spec
parent d9eb2f2c
---
title: Update API spec files to describe the correct class
merge_request:
author: Livier
require 'spec_helper'
describe API::API, api: true do
describe API::AwardEmoji, api: true do
include ApiHelpers
let(:user) { create(:user) }
let!(:project) { create(:empty_project) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Boards, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
require 'mime/types'
describe API::API, api: true do
describe API::Branches, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Builds, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
require 'mime/types'
describe API::API, api: true do
describe API::Commits, api: true do
include ApiHelpers
let(:user) { create(:user) }
let(:user2) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::DeployKeys, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Deployments, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Environments, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Files, api: true do
include ApiHelpers
let(:user) { create(:user) }
let!(:project) { create(:project, namespace: user.namespace ) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Groups, api: true do
include ApiHelpers
let(:user1) { create(:user, can_create_group: false) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Internal, api: true do
include ApiHelpers
let(:user) { create(:user) }
let(:key) { create(:key, user: user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Issues, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Keys, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Labels, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require "spec_helper"
describe API::API, 'MergeRequestDiffs', api: true do
describe API::MergeRequestDiffs, 'MergeRequestDiffs', api: true do
include ApiHelpers
let!(:user) { create(:user) }
......
require "spec_helper"
describe API::API, api: true do
describe API::MergeRequests, api: true do
include ApiHelpers
let(:base_time) { Time.now }
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Milestones, api: true do
include ApiHelpers
let(:user) { create(:user) }
let!(:project) { create(:empty_project, namespace: user.namespace ) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Namespaces, api: true do
include ApiHelpers
let(:admin) { create(:admin) }
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Notes, api: true do
include ApiHelpers
let(:user) { create(:user) }
let!(:project) { create(:project, :public, namespace: user.namespace) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::NotificationSettings, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Pipelines, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, 'ProjectHooks', api: true do
describe API::ProjectHooks, 'ProjectHooks', api: true do
include ApiHelpers
let(:user) { create(:user) }
let(:user3) { create(:user) }
......
require 'rails_helper'
describe API::API, api: true do
describe API::ProjectSnippets, api: true do
include ApiHelpers
let(:project) { create(:empty_project, :public) }
......
# -*- coding: utf-8 -*-
require 'spec_helper'
describe API::API, api: true do
describe API::Projects, api: true do
include ApiHelpers
include Gitlab::CurrentSettings
let(:user) { create(:user) }
......
require 'spec_helper'
require 'mime/types'
describe API::API, api: true do
describe API::Repositories, api: true do
include ApiHelpers
include RepoHelpers
include WorkhorseHelpers
......@@ -44,7 +44,6 @@ describe API::API, api: true do
end
end
describe 'GET /projects/:id/repository/tree?recursive=1' do
context 'authorized user' do
before { project.team << [user2, :reporter] }
......
require "spec_helper"
describe API::API, api: true do
describe API::Services, api: true do
include ApiHelpers
let(:user) { create(:user) }
let(:admin) { create(:admin) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Session, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, 'Settings', api: true do
describe API::Settings, 'Settings', api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::SystemHooks, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
require 'mime/types'
describe API::API, api: true do
describe API::Tags, api: true do
include ApiHelpers
include RepoHelpers
......
require 'spec_helper'
describe API::API do
describe API::Triggers do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Users, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Variables, api: true do
include ApiHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe API::API, api: true do
describe API::Version, api: true do
include ApiHelpers
describe 'GET /version' do
......
require 'spec_helper'
describe Ci::API::API do
describe Ci::API::Builds do
include ApiHelpers
let(:runner) { FactoryGirl.create(:ci_runner, tag_list: ["mysql", "ruby"]) }
......
require 'spec_helper'
describe Ci::API::API do
describe Ci::API::Runners do
include ApiHelpers
include StubGitlabCalls
......
require 'spec_helper'
describe Ci::API::API do
describe Ci::API::Triggers do
include ApiHelpers
describe 'POST /projects/:project_id/refs/:ref/trigger' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment