From 3be445c58e820035a7da6800beba6a13f3ca742f Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 26 Oct 2016 21:13:58 +0300 Subject: Revert "Revert "Change "Group#web_url" to return "/groups/twitter" rather than "/twitter"."" This reverts commit 9dbd5b3cfad10b214ae5ef27c39246bbb74a5077. --- spec/models/group_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/models') 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 -- cgit v1.2.1