summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-02-13 09:45:10 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-02-13 09:45:10 +0100
commitd1d5e2388d692160078647150c3fa134a205a835 (patch)
tree9d7d795941b7de8954119a0c7b984fdf88296bb6 /spec/views
parent1f94b952b5209180d4ee6cd38256258ac177e7df (diff)
downloadgitlab-ce-d1d5e2388d692160078647150c3fa134a205a835.tar.gz
Improve home panel partial code and view specs
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/_home_panel.html.haml_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/views/projects/_home_panel.html.haml_spec.rb b/spec/views/projects/_home_panel.html.haml_spec.rb
index 0abd7c524a1..5af57cdf3b7 100644
--- a/spec/views/projects/_home_panel.html.haml_spec.rb
+++ b/spec/views/projects/_home_panel.html.haml_spec.rb
@@ -15,7 +15,7 @@ describe 'projects/_home_panel', :view do
allow(view).to receive(:can?).and_return(false)
end
- context 'user is signed in' do
+ context 'when user is signed in' do
let(:user) { create(:user) }
it 'makes it possible to set notification level' do
@@ -26,7 +26,7 @@ describe 'projects/_home_panel', :view do
end
end
- context 'user is signed out' do
+ context 'when user is signed out' do
let(:user) { nil }
it 'is not possible to set notification level' do