提交 06b4ea24 编写于 作者: L Lin Jen-Shin

Fix a view test by using presenter

上级 4a030326
......@@ -9,7 +9,7 @@ describe 'projects/builds/show', :view do
end
before do
assign(:build, build)
assign(:build, build.present)
assign(:project, project)
allow(view).to receive(:can?).and_return(true)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册