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
1 changed files with 1 additions and 1 deletions

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)