summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-04-01 16:50:18 -0300
committerFelipe Artur <felipefac@gmail.com>2016-04-18 11:12:27 -0300
commit147879ae66fd742d13bbb5b72d492788bc48c8d9 (patch)
tree4800f696b0d1488209443e0ff5eb45046e43a2ce /spec
parente8a77c0aee3eaf99793b3678a0eb97194244b339 (diff)
downloadgitlab-ce-147879ae66fd742d13bbb5b72d492788bc48c8d9.tar.gz
Fix specs
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/users_controller_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb
index 26acfd3bd96..7701da9747a 100644
--- a/spec/controllers/users_controller_spec.rb
+++ b/spec/controllers/users_controller_spec.rb
@@ -30,10 +30,12 @@ describe UsersController do
end
describe 'when logged out' do
+ before { stub_application_setting(restricted_visibility_levels: []) }
+
it 'renders the show template' do
get :show, username: user.username
- expect(response).to be_success
+ expect(response.status).to eq(200)
expect(response).to render_template('show')
end
end