diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-02-08 18:45:19 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-02-08 18:45:19 +0000 |
commit | 8820f3cdd2b04735f7c09b914ebaf186d2b9331d (patch) | |
tree | 541be27f62ebe75a8a4f332cec453b95e65da72c /spec/models/namespace_spec.rb | |
parent | 66f9476a3740167c28a3fcf55f89c76653d829a4 (diff) | |
parent | 2989192d1aa8051aa09164cd097418bd3063d4ad (diff) | |
download | gitlab-ce-8820f3cdd2b04735f7c09b914ebaf186d2b9331d.tar.gz |
Merge branch 'dz-refactor-full-path' into 'master'
Store group and project full name and full path in routes table
See merge request !8979
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index ec389f20d78..35d932f1c64 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -186,22 +186,6 @@ describe Namespace, models: true do end end - describe '#full_path' do - let(:group) { create(:group) } - let(:nested_group) { create(:group, parent: group) } - - it { expect(group.full_path).to eq(group.path) } - it { expect(nested_group.full_path).to eq("#{group.path}/#{nested_group.path}") } - end - - describe '#full_name' do - let(:group) { create(:group) } - let(:nested_group) { create(:group, parent: group) } - - it { expect(group.full_name).to eq(group.name) } - it { expect(nested_group.full_name).to eq("#{group.name} / #{nested_group.name}") } - end - describe '#ancestors' do let(:group) { create(:group) } let(:nested_group) { create(:group, parent: group) } |