diff options
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index e5c30e4ca46..99d7e4d156f 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1786,11 +1786,11 @@ describe Project do end end - describe '.including_namespace_and_owner' do + describe '.eager_load_namespace_and_owner' do it 'eager loads the namespace and namespace owner' do create(:project) - row = described_class.eager_load_namespace_and_owner.to_a.first + row = described_class.eager_load_namespace_and_owner.first recorder = ActiveRecord::QueryRecorder.new { row.namespace.owner } expect(recorder.count).to be_zero |