summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 12:55:41 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 12:55:41 -0500
commit79ef221e4e4998809a3fa1ac888c39868baa589e (patch)
treef2e7532f56dd1889a6e881b32be414ebc1ab6954
parent798e03f0c800250c433276e84ca528ea88ad9a16 (diff)
downloadgitlab-ce-79ef221e4e4998809a3fa1ac888c39868baa589e.tar.gz
Fix Rubocop offense
-rw-r--r--spec/views/projects/_home_panel.html.haml_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/projects/_home_panel.html.haml_spec.rb b/spec/views/projects/_home_panel.html.haml_spec.rb
index 5af57cdf3b7..f5381a48207 100644
--- a/spec/views/projects/_home_panel.html.haml_spec.rb
+++ b/spec/views/projects/_home_panel.html.haml_spec.rb
@@ -4,7 +4,7 @@ describe 'projects/_home_panel', :view do
let(:project) { create(:empty_project, :public) }
let(:notification_settings) do
- user.notification_settings_for(project) if user
+ user&.notification_settings_for(project)
end
before do