Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-10-21 18:14:08 +0300
committerSean McGivern <sean@mcgivern.me.uk>2016-10-21 18:14:08 +0300
commit3fd3f85bc056f024ba0488ae1989ad6fbd8f6c60 (patch)
tree55109e61c941ef5b07b2455e78e786d9247c885d /spec/models
parent4b2cc8dc96b0f7f8c0a7edf345bc4c3d0b0932e6 (diff)
parentc81ff152e08d58c13efbd50c40dd2e083ac65083 (diff)
Merge branch 'adam-fix-group-web-url' into 'master'
Change "Group#web_url" to return "/groups/twitter" rather than "/twitter" Fixes #23527 See merge request !7035
Diffstat (limited to 'spec/models')
-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