Commit 06b4ea24 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix a view test by using presenter

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment