summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-04-06 14:45:01 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-04-06 14:45:01 +0800
commit06b4ea243fef27fa79a201148f07c25df375f57d (patch)
tree82c5bde492e73d7be5f43a0c966f13a0299e66a0
parent4a030326605e2ab2ce7b520d14c6ac3ad020d58b (diff)
downloadgitlab-ce-06b4ea243fef27fa79a201148f07c25df375f57d.tar.gz
Fix a view test by using presenter
-rw-r--r--spec/views/projects/builds/show.html.haml_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/projects/builds/show.html.haml_spec.rb b/spec/views/projects/builds/show.html.haml_spec.rb
index 55b64808fb3..0f39df0f250 100644
--- a/spec/views/projects/builds/show.html.haml_spec.rb
+++ b/spec/views/projects/builds/show.html.haml_spec.rb
@@ -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)