Commit 79ef221e authored by Alfredo Sumaran's avatar Alfredo Sumaran

Fix Rubocop offense

parent 798e03f0
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment