summaryrefslogtreecommitdiff
path: root/spec/models/members
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/members
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/members')
-rw-r--r--spec/models/members/project_member_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/members/project_member_spec.rb b/spec/models/members/project_member_spec.rb
index b2fe96e2e02..f6b2ec5ae31 100644
--- a/spec/models/members/project_member_spec.rb
+++ b/spec/models/members/project_member_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
describe ProjectMember, models: true do
describe 'associations' do
- it { is_expected.to belong_to(:project).class_name('Project').with_foreign_key(:source_id) }
+ it { is_expected.to belong_to(:project).with_foreign_key(:source_id) }
end
describe 'validations' do