summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-21 13:13:50 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-21 13:19:34 +0200
commit9410599391edfb1b16472fbfaad362bb4e14eb55 (patch)
tree074792ba5c26702ab6a52cd2e14827a5d93d11a9 /spec
parent29a64950dd9417452707cb8677a480a35f8da876 (diff)
downloadgitlab-ce-9410599391edfb1b16472fbfaad362bb4e14eb55.tar.gz
Scope environments to projectlimit-number-of-shown-environments
Diffstat (limited to 'spec')
-rw-r--r--spec/views/projects/merge_requests/_heading.html.haml_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/views/projects/merge_requests/_heading.html.haml_spec.rb b/spec/views/projects/merge_requests/_heading.html.haml_spec.rb
index 733b2dfa7ff..21f49d396e7 100644
--- a/spec/views/projects/merge_requests/_heading.html.haml_spec.rb
+++ b/spec/views/projects/merge_requests/_heading.html.haml_spec.rb
@@ -15,6 +15,8 @@ describe 'projects/merge_requests/widget/_heading' do
assign(:merge_request, merge_request)
assign(:project, project)
+ allow(view).to receive(:can?).and_return(true)
+
render
end