Commit 40bca524 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix routing/controller specs for refactored controllers

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