Skip to content
Snippets Groups Projects
Commit e778bf30 authored by Terri Chu's avatar Terri Chu
Browse files

fix some specs

parent d83b17be
No related merge requests found
......@@ -2,7 +2,7 @@
require 'rake_helper'
RSpec.describe 'gitlab:elastic namespace rake tasks', :elastic, :silence_stdout do
RSpec.describe 'gitlab:elastic namespace rake tasks', :silence_stdout do
before do
Rake.application.rake_require 'tasks/gitlab/elastic'
end
......@@ -56,6 +56,8 @@
end
describe 'create_empty_index' do
let(:es_helper) { ::Gitlab::Elastic::Helper.default }
subject { run_rake_task('gitlab:elastic:create_empty_index') }
before do
......@@ -124,7 +126,7 @@
refresh_index!
migrations = Elastic::DataMigrationService.migrations.map(&:version)
expect(Elastic::MigrationRecord.load_versions(completed: true)).to eq(migrations)
expect(Elastic::MigrationRecord.load_versions(completed: true)).to contain_exactly(migrations)
end
end
......
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