diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-09-25 11:04:27 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-09-25 11:04:27 +0000 |
commit | f55f925501d67579b9e30f19156be7005af86078 (patch) | |
tree | 390094c50f0e3d4a7b221a48461921fd846b065d /spec/lib | |
parent | 2b364bd4d87ec9646ed949a8fe37a8720e6bdbd3 (diff) | |
parent | 9c16958c309b0398af612d5f7653ca0affdd3758 (diff) | |
download | gitlab-ce-f55f925501d67579b9e30f19156be7005af86078.tar.gz |
Merge branch 'gitaly-508-find-commits' into 'master'38204-comment-form-doesn-t-switch-back-to-write-tab-after-submitting
Migrate Gitlab::Git::Repository#log to Gitaly
Closes gitaly#508
See merge request gitlab-org/gitlab-ce!14179
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/git/commit_spec.rb | 10 |
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) |