summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-06-06 21:42:45 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-06-06 21:42:45 +0800
commitd919f924bf32220237c389dc913093efead8928c (patch)
treebeb756b9eecc2b3eaa78a4fd302bb50aa0cc2d7f /spec/models
parent34f925fe0bebdc7212c1c960678114a4e44828ef (diff)
downloadgitlab-ce-d919f924bf32220237c389dc913093efead8928c.tar.gz
Backport https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1942
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/user_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 1c3541da44f..a83726b48a0 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -13,6 +13,10 @@ describe User, models: true do
it { is_expected.to include_module(TokenAuthenticatable) }
end
+ describe 'delegations' do
+ it { is_expected.to delegate_method(:path).to(:namespace).with_prefix }
+ end
+
describe 'associations' do
it { is_expected.to have_one(:namespace) }
it { is_expected.to have_many(:snippets).dependent(:destroy) }