diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-26 21:13:58 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-27 16:16:15 +0300 |
commit | 3be445c58e820035a7da6800beba6a13f3ca742f (patch) | |
tree | eac8d7dd08ee288976e70b553b99c37f33c41e4b /spec/models/group_spec.rb | |
parent | b5797168ec529c179342b8c292c2b52f0cbe41ee (diff) | |
download | gitlab-ce-3be445c58e820035a7da6800beba6a13f3ca742f.tar.gz |
Revert "Revert "Change "Group#web_url" to return "/groups/twitter" rather than "/twitter".""dz-revert-revert
This reverts commit 9dbd5b3cfad10b214ae5ef27c39246bbb74a5077.
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r-- | spec/models/group_spec.rb | 6 |
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 |