diff --git a/spec/requests/api/branches_spec.rb b/spec/requests/api/branches_spec.rb index 0c417baeb77..9bb6ed62393 100644 --- a/spec/requests/api/branches_spec.rb +++ b/spec/requests/api/branches_spec.rb @@ -181,12 +181,6 @@ describe API::Branches do expect(json_response['can_push']).to eq(true) end - it 'returns that the current user can push' do - get api(route, current_user) - - expect(json_response['can_push']).to eq(true) - end - context 'when branch contains a dot' do let(:branch_name) { branch_with_dot.name }