diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 14:45:01 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 14:45:01 +0800 |
commit | 06b4ea243fef27fa79a201148f07c25df375f57d (patch) | |
tree | 82c5bde492e73d7be5f43a0c966f13a0299e66a0 /spec/views | |
parent | 4a030326605e2ab2ce7b520d14c6ac3ad020d58b (diff) | |
download | gitlab-ce-06b4ea243fef27fa79a201148f07c25df375f57d.tar.gz |
Fix a view test by using presenter
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/builds/show.html.haml_spec.rb | 2 |
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) |