diff options
author | yguo <yguo@gitlab.com> | 2019-06-17 11:31:55 -0400 |
---|---|---|
committer | yguo <yguo@gitlab.com> | 2019-06-17 11:31:55 -0400 |
commit | 03d40ec845d83c9ecef6739c710137ff4183573b (patch) | |
tree | d6ed89848e227fad612c213acd9c766440599e0d /spec/models/commit_spec.rb | |
parent | 74db1abb6ce6b70d775e7b3d54f59ea431de9082 (diff) | |
parent | 08ed6b1720ff4d6e2b45a97000a106071d650194 (diff) | |
download | gitlab-ce-issue-62685.tar.gz |
Merge from masterissue-62685
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index 14f4b4d692f..e76186fb280 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -44,6 +44,14 @@ describe Commit do expect(commit.id).to eq(oids[i]) end end + + it 'does not attempt to replace methods via BatchLoader' do + subject.each do |commit| + expect(commit).to receive(:method_missing).and_call_original + + commit.id + end + end end context 'when not found' do |