summaryrefslogtreecommitdiff
path: root/spec/models/user_spec.rb
diff options
context:
space:
mode:
authorDavid Wagner <david@marvid.fr>2016-10-18 23:20:36 +0200
committerDavid Wagner <david@marvid.fr>2016-10-24 22:29:48 +0200
commit03b6108f6f293830e50d113068877be155549fdd (patch)
tree036b693ccf6e556ba3ba404cdee918af18dec0ae /spec/models/user_spec.rb
parent4658c9a234b270897b0e9042a3f51fcdc376146b (diff)
downloadgitlab-ce-03b6108f6f293830e50d113068877be155549fdd.tar.gz
Remove redundant class_name and foreign_key overrides
They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 65b2896930a..10c39b90212 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -15,11 +15,11 @@ describe User, models: true do
describe 'associations' do
it { is_expected.to have_one(:namespace) }
- it { is_expected.to have_many(:snippets).class_name('Snippet').dependent(:destroy) }
+ it { is_expected.to have_many(:snippets).dependent(:destroy) }
it { is_expected.to have_many(:project_members).dependent(:destroy) }
it { is_expected.to have_many(:groups) }
it { is_expected.to have_many(:keys).dependent(:destroy) }
- it { is_expected.to have_many(:events).class_name('Event').dependent(:destroy) }
+ it { is_expected.to have_many(:events).dependent(:destroy) }
it { is_expected.to have_many(:recent_events).class_name('Event') }
it { is_expected.to have_many(:issues).dependent(:destroy) }
it { is_expected.to have_many(:notes).dependent(:destroy) }