summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-07 23:51:13 +0200
committerRémy Coutable <remy@rymai.me>2017-06-09 17:21:39 +0200
commitb173ae6b48323b22f5650e97cd797fa9c49e6cd8 (patch)
tree9c1266742aa0b8e785fab9a6054b32d4029ba22e /spec
parentaf0c69170695f43b15db9c93ae2f2b8ebaaa96b6 (diff)
downloadgitlab-ce-b173ae6b48323b22f5650e97cd797fa9c49e6cd8.tar.gz
Fix linting, route, and specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec')
-rw-r--r--spec/models/commit_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index 3905240f48d..ba247dcc5cf 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -20,8 +20,8 @@ describe Commit, models: true do
end
it 'caches the author' do
+ allow(RequestStore).to receive(:active?).and_return(true)
user = create(:user, email: commit.author_email)
- 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)