Fix a view test by using presenter

This commit is contained in:
Lin Jen-Shin 2017-04-06 14:45:01 +08:00
parent 4a03032660
commit 06b4ea243f

View file

@ -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)