Skip to content
Snippets Groups Projects
Commit 634cbd71 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Refactor API classes. So api classes like Gitlab::Issues become API::Issues

parent e6224942
No related branches found
No related tags found
No related merge requests found
require 'spec_helper'
 
describe Gitlab::API do
describe API::API do
include ApiHelpers
 
let(:user) { create(:user) }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::API do
describe API::API do
include ApiHelpers
before(:each) { enable_observers }
 
Loading
Loading
require 'spec_helper'
 
describe Gitlab::API do
describe API::API do
include ApiHelpers
 
let(:user) { create(:user) }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::API do
describe API::API do
include ApiHelpers
 
let(:user) { create(:user) }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::API do
describe API::API do
include ApiHelpers
 
let(:user) { create(:user) }
Loading
Loading
Loading
Loading
@@ -7,7 +7,7 @@ describe SearchController, "routing" do
end
end
 
# gitlab_api /api Gitlab::API
# gitlab_api /api API::API
# resque /info/resque Resque::Server
# /:path Grack
describe "Mounted Apps", "routing" do
Loading
Loading
Loading
Loading
@@ -18,7 +18,7 @@ module ApiHelpers
#
# Returns the relative path to the requested API resource
def api(path, user = nil)
"/api/#{Gitlab::API.version}#{path}" +
"/api/#{API::API.version}#{path}" +
 
# Normalize query string
(path.index('?') ? '' : '?') +
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment