summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2016-10-21 13:53:38 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2016-10-21 13:53:38 +0200
commitc81ff152e08d58c13efbd50c40dd2e083ac65083 (patch)
tree685276faaa136fcbd3ae2bd2d52401d74ae1c35a /spec
parent9df2115a4df5a964774128fdbbe1b3e695105536 (diff)
downloadgitlab-ce-c81ff152e08d58c13efbd50c40dd2e083ac65083.tar.gz
Change "Group#web_url" to return "/groups/twitter" rather than "/twitter".
Bring back the old behaviour which was changed by 6b90ccb9. Fixes #23527.
Diffstat (limited to 'spec')
-rw-r--r--spec/models/group_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index ac862055ebc..47f89f744cb 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -265,4 +265,10 @@ describe Group, models: true do
members
end
+
+ describe '#web_url' do
+ it 'returns the canonical URL' do
+ expect(group.web_url).to include("groups/#{group.name}")
+ end
+ end
end