diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2016-10-21 18:14:08 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2016-10-21 18:14:08 +0300 |
commit | 3fd3f85bc056f024ba0488ae1989ad6fbd8f6c60 (patch) | |
tree | 55109e61c941ef5b07b2455e78e786d9247c885d /spec/models | |
parent | 4b2cc8dc96b0f7f8c0a7edf345bc4c3d0b0932e6 (diff) | |
parent | c81ff152e08d58c13efbd50c40dd2e083ac65083 (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.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 |