diff options
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| |