diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-01-25 16:43:46 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-01-25 16:43:46 +0300 |
commit | 4480bef182307c0b389e84685c8bf680105b18ee (patch) | |
tree | 50db5ccf1fefad14882f24dec5a205d7b012ba63 /spec | |
parent | 8a9597fc737b9c848b8e1935551edb2f1d09aab0 (diff) | |
parent | 0d9e80c3ddedb5b56165dffa6cb248ee49091abf (diff) |
Merge branch 'dz-fix-group-canonical-route' into 'master'
Fix 500 error for Group#web_url method if nested group
See merge request !8743
Diffstat (limited to 'spec')
-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 45fe927202b..63ffdf70958 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -269,6 +269,12 @@ describe Group, models: true do it 'returns the canonical URL' do expect(group.web_url).to include("groups/#{group.name}") end + + context 'nested group' do + let(:nested_group) { create(:group, :nested) } + + it { expect(nested_group.web_url).to include("groups/#{nested_group.full_path}") } + end end describe 'nested group' do |