diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 12:08:30 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 12:30:32 +0100 |
commit | dd826a5f20837f33263c658e41a4def0fc932069 (patch) | |
tree | 0b5a37b5a5f9c12bfef330e5286a165eae90fe2f /spec/models | |
parent | f749fb7fe0574d07eeb38561b9af62754e518281 (diff) | |
download | gitlab-ce-dd826a5f20837f33263c658e41a4def0fc932069.tar.gz |
Return a consistent not found message
This prevents leakage of project names on an endpoint which is
unauthenticated and thus open to the world.
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 08eb3bc9cd4..1972a8bb3f4 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -20,7 +20,7 @@ describe Project, models: true do it { is_expected.to have_many(:deploy_keys) } it { is_expected.to have_many(:hooks).dependent(:destroy) } it { is_expected.to have_many(:protected_branches).dependent(:destroy) } - it { is_expected.to have_many(:chat_services).dependent(:destroy) } + it { is_expected.to have_many(:chat_services) } it { is_expected.to have_one(:forked_project_link).dependent(:destroy) } it { is_expected.to have_one(:slack_service).dependent(:destroy) } it { is_expected.to have_one(:pushover_service).dependent(:destroy) } |