提交 ce5f7008 编写于 作者: P Phil Hughes

Fixed view specs

上级 e6fbae25
require 'spec_helper'
describe 'projects/commit/show.html.haml', :view do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
before do
......@@ -12,7 +11,7 @@ describe 'projects/commit/show.html.haml', :view do
assign(:notes, [])
assign(:diffs, project.commit.diffs)
allow(view).to receive(:current_user).and_return(user)
allow(view).to receive(:current_user).and_return(nil)
allow(view).to receive(:can?).and_return(false)
allow(view).to receive(:can_collaborate_with_project?).and_return(false)
allow(view).to receive(:current_ref).and_return(project.repository.root_ref)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册