diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-11 09:09:58 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-11 09:09:58 +0000 |
| commit | a350f877c4246fee981690388239d1e19e17202a (patch) | |
| tree | fc75efe26a34c732ab85b1dc6cf09fcab558e3f8 /spec/lib/gitlab/database/postgres_index_spec.rb | |
| parent | 7adadf7e5b83c46f7e83051146624719e9b6bf0d (diff) | |
| download | gitlab-ce-a350f877c4246fee981690388239d1e19e17202a.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/database/postgres_index_spec.rb')
| -rw-r--r-- | spec/lib/gitlab/database/postgres_index_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/database/postgres_index_spec.rb b/spec/lib/gitlab/database/postgres_index_spec.rb index 2fda9b85c5a..47e94230ba1 100644 --- a/spec/lib/gitlab/database/postgres_index_spec.rb +++ b/spec/lib/gitlab/database/postgres_index_spec.rb @@ -69,15 +69,15 @@ RSpec.describe Gitlab::Database::PostgresIndex do describe '#unique?' do it 'returns true for a unique index' do - expect(find('public.bar_key')).to be_unique + expect(find('public.bar_key').unique?).to be_truthy end it 'returns false for a regular, non-unique index' do - expect(find('public.foo_idx')).not_to be_unique + expect(find('public.foo_idx').unique?).to be_falsey end it 'returns true for a primary key index' do - expect(find('public.example_table_pkey')).to be_unique + expect(find('public.example_table_pkey').unique?).to be_truthy end end |
