Fix static analysis failure

This commit is contained in:
DJ Mountney 2018-06-27 14:09:06 -07:00
parent 1ef3b3efbd
commit 2efe4a13b6
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ describe 'gitlab:db namespace rake task' do
describe 'configure' do
it 'invokes db:migrate when schema has already been loaded' do
allow(ActiveRecord::Base.connection).to receive(:tables).and_return(['table1', 'table2'])
allow(ActiveRecord::Base.connection).to receive(:tables).and_return(%w[table1 table2])
expect(Rake::Task['db:migrate']).to receive(:invoke)
expect(Rake::Task['db:schema:load']).not_to receive(:invoke)
expect(Rake::Task['db:seed_fu']).not_to receive(:invoke)