From b4819a5d750ee458a424cf7965926c5758bf784a Mon Sep 17 00:00:00 2001 From: Paco Guzman Date: Wed, 21 Sep 2016 14:46:10 +0200 Subject: GitPushService group but author cross_reference creation The reference extractor phase happens once per type not once pero pushed commit, so we could be avoiding a lot of DB queries --- spec/models/commit_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/models/commit_spec.rb') diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index d3e6a6648cc..95054228d72 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -21,7 +21,7 @@ describe Commit, models: true do it 'caches the author' do user = create(:user, email: commit.author_email) - expect(RequestStore).to receive(:active?).twice.and_return(true) + expect(RequestStore).to receive(:active?).and_return(true) expect_any_instance_of(Commit).to receive(:find_author_by_any_email).and_call_original expect(commit.author).to eq(user) -- cgit v1.2.1