diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-04-11 16:21:52 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-01 11:14:24 +0200 |
commit | 1498a9cb0fb4500737c9d9e88f38c0ddf2b42791 (patch) | |
tree | 26e0497c62b9396a658b68f422b89c486763b157 /spec/models/namespace_spec.rb | |
parent | f7511caa5f26c071c61908a48440a95c5f45eb69 (diff) | |
download | gitlab-ce-1498a9cb0fb4500737c9d9e88f38c0ddf2b42791.tar.gz |
Check `has_parent?` for determining validation type
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index e406d0a16bd..6775fd2f1b8 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -47,6 +47,7 @@ describe Namespace, models: true do describe "Respond to" do it { is_expected.to respond_to(:human_name) } it { is_expected.to respond_to(:to_param) } + it { is_expected.to respond_to(:has_parent?) } end describe '#to_param' do |