BigW Consortium Gitlab

Commit 40bca524 by Dmitriy Zaporozhets

Fix routing/controller specs for refactored controllers

parent 2ed7cbfb
require 'spec_helper'
describe BlobController do
describe Projects::BlobController do
let(:project) { create(:project_with_code) }
let(:user) { create(:user) }
......
require 'spec_helper'
describe CommitController do
describe Projects::CommitController do
let(:project) { create(:project_with_code) }
let(:user) { create(:user) }
let(:commit) { project.repository.last_commit_for("master") }
......
require 'spec_helper'
describe CommitsController do
describe Projects::CommitsController do
let(:project) { create(:project_with_code) }
let(:user) { create(:user) }
......
require 'spec_helper'
describe MergeRequestsController do
describe Projects::MergeRequestsController do
let(:project) { create(:project_with_code) }
let(:user) { create(:user) }
let(:merge_request) { create(:merge_request_with_diffs, project: project, target_branch: "bcf03b5d~3", source_branch: "bcf03b5d") }
......@@ -8,7 +8,7 @@ describe MergeRequestsController do
before do
sign_in(user)
project.team << [user, :master]
MergeRequestsController.any_instance.stub(validates_merge_request: true)
Projects::MergeRequestsController.any_instance.stub(validates_merge_request: true)
end
describe "#show" do
......
require 'spec_helper'
describe TreeController do
describe Projects::TreeController do
let(:project) { create(:project_with_code) }
let(:user) { create(:user) }
......
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