summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-09-11 10:17:49 +0200
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-09-25 11:34:10 +0200
commit9c16958c309b0398af612d5f7653ca0affdd3758 (patch)
tree2004dad0ca0d3c648f75eea1d417ad0560c4506d /spec/lib
parent4d88f6496836c7fbf8a0f58e4d2604bf2c3f96d5 (diff)
downloadgitlab-ce-9c16958c309b0398af612d5f7653ca0affdd3758.tar.gz
Migrate Gitlab::Git::Repository#log to Gitaly
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/git/commit_spec.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/lib/gitlab/git/commit_spec.rb b/spec/lib/gitlab/git/commit_spec.rb
index 46e968cc398..a3dff6d0d4b 100644
--- a/spec/lib/gitlab/git/commit_spec.rb
+++ b/spec/lib/gitlab/git/commit_spec.rb
@@ -181,7 +181,7 @@ describe Gitlab::Git::Commit, seed_helper: true do
end
end
- describe '.where' do
+ shared_examples '.where' do
context 'path is empty string' do
subject do
commits = described_class.where(
@@ -279,6 +279,14 @@ describe Gitlab::Git::Commit, seed_helper: true do
end
end
+ describe '.where with gitaly' do
+ it_should_behave_like '.where'
+ end
+
+ describe '.where without gitaly', skip_gitaly_mock: true do
+ it_should_behave_like '.where'
+ end
+
describe '.between' do
subject do
commits = described_class.between(repository, SeedRepo::Commit::PARENT_ID, SeedRepo::Commit::ID)