Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 15:08:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 15:08:34 +0300
commit0820b29dca14bd22c2cee6d9ee2900b64385bfa6 (patch)
tree3637b0c997f5764c7255b830ffe32e53ac7ce078 /spec/lib/gitlab/database
parent778772c8d97adc025c126a941a1bd37bf72419ac (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/database')
-rw-r--r--spec/lib/gitlab/database/migration_helpers_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/database/migration_helpers_spec.rb b/spec/lib/gitlab/database/migration_helpers_spec.rb
index 439f1343514..e0b4c8ae1f7 100644
--- a/spec/lib/gitlab/database/migration_helpers_spec.rb
+++ b/spec/lib/gitlab/database/migration_helpers_spec.rb
@@ -1475,7 +1475,11 @@ describe Gitlab::Database::MigrationHelpers do
describe '#index_exists_by_name?' do
it 'returns true if an index exists' do
- expect(model.index_exists_by_name?(:projects, 'index_projects_on_path'))
+ ActiveRecord::Base.connection.execute(
+ 'CREATE INDEX test_index_for_index_exists ON projects (path);'
+ )
+
+ expect(model.index_exists_by_name?(:projects, 'test_index_for_index_exists'))
.to be_truthy
end