diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-09-03 16:16:23 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-09-03 16:16:23 +0300 |
commit | 743add978aafa43862867a89b00a04e888199947 (patch) | |
tree | e2ff2db449f186d5c2dcb9da055d75851af6ab5a /spec/controllers/groups_controller_spec.rb | |
parent | c0625e5de1fe491675aadf825fdb9e976f089409 (diff) |
Move badge settings to general settings
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index 7a037828035..ae49490f31c 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -57,6 +57,16 @@ describe GroupsController do end end + describe 'GET edit' do + it 'sets the badge API endpoint' do + sign_in(owner) + + get :edit, id: group.to_param + + expect(assigns(:badge_api_endpoint)).not_to be_nil + end + end + describe 'GET #new' do context 'when creating subgroups', :nested_groups do [true, false].each do |can_create_group_status| |