Fix specs

This commit is contained in:
Felipe Artur 2016-04-01 16:50:18 -03:00
parent e8a77c0aee
commit 147879ae66
2 changed files with 5 additions and 3 deletions

View file

@ -156,6 +156,7 @@ class Ability
rules -= project_archived_rules
end
rules << :read_project_members
rules - project_disabled_features_rules(project)
end
end
@ -177,8 +178,7 @@ class Ability
@public_project_rules ||= project_guest_rules + [
:download_code,
:fork_project,
:read_commit_status,
:read_project_members
:read_commit_status
]
end

View file

@ -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