diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2016-10-21 14:53:38 +0300 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2016-10-21 14:53:38 +0300 |
commit | c81ff152e08d58c13efbd50c40dd2e083ac65083 (patch) | |
tree | 685276faaa136fcbd3ae2bd2d52401d74ae1c35a /spec/models | |
parent | 9df2115a4df5a964774128fdbbe1b3e695105536 (diff) |
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/models')
-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 |