spec/support/test_repository.rb in gitlab-elasticsearch-git-0.0.17 vs spec/support/test_repository.rb in gitlab-elasticsearch-git-1.0.0

- old
+ new

@@ -5,19 +5,24 @@ host: (ENV['ELASTICSEARCH_HOST'] || 'localhost') ) self.__elasticsearch__.client = CLIENT - def initialize(id = 'test_1') + def initialize(id = 'test_1', project_id = 1) @repo_id = id + @project_id = 1 end def client_for_indexing CLIENT end def repository_id @repo_id + end + + def project_id + @project_id end def path_to_repo TEST_REPO_PATH end