Commit 6ffd8ef3 authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Fix spec/workers/elastic_commit_indexer_worker_spec.rb after CE upstream

update
parent 4c058f2e
......@@ -25,9 +25,9 @@ describe ElasticCommitIndexerWorker do
it 'returns true if repository has unborn head' do
project = create :project
rugged = double('rugged')
expect(rugged).to receive(:head_unborn?).and_return(true)
expect_any_instance_of(Repository).to receive(:rugged).and_return(rugged)
repository = double('repository')
expect(repository).to receive(:exists?).and_return(false)
expect_any_instance_of(Project).to receive(:repository).and_return(repository)
expect(subject.perform(project.id)).to be_truthy
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment