diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-01-23 18:42:10 +0100 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-01-25 14:05:11 +0100 |
commit | 6d6f7536bd9b5bcbf94dfbe15cc86e84d06527f5 (patch) | |
tree | 6b6c62e084b1ce914da742be847d56086b0b6475 /spec/lib/gitlab/github_import/importer | |
parent | 1f5af51b476a36a72759e7560c125c2b9602b145 (diff) | |
download | gitlab-ce-6d6f7536bd9b5bcbf94dfbe15cc86e84d06527f5.tar.gz |
Look for rugged with static analysislint-rugged
Diffstat (limited to 'spec/lib/gitlab/github_import/importer')
-rw-r--r-- | spec/lib/gitlab/github_import/importer/pull_requests_importer_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/github_import/importer/pull_requests_importer_spec.rb b/spec/lib/gitlab/github_import/importer/pull_requests_importer_spec.rb index d72572cd510..44695acbe7d 100644 --- a/spec/lib/gitlab/github_import/importer/pull_requests_importer_spec.rb +++ b/spec/lib/gitlab/github_import/importer/pull_requests_importer_spec.rb @@ -244,7 +244,7 @@ describe Gitlab::GithubImport::Importer::PullRequestsImporter do it 'returns true when a commit exists' do expect(project.repository) - .to receive(:lookup) + .to receive(:commit) .with('123') .and_return(double(:commit)) @@ -253,9 +253,9 @@ describe Gitlab::GithubImport::Importer::PullRequestsImporter do it 'returns false when a commit does not exist' do expect(project.repository) - .to receive(:lookup) + .to receive(:commit) .with('123') - .and_raise(Rugged::OdbError) + .and_return(nil) expect(importer.commit_exists?('123')).to eq(false) end |