diff options
author | DJ Mountney <david@twkie.net> | 2018-06-27 14:09:06 -0700 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2018-06-27 14:09:06 -0700 |
commit | 2efe4a13b6be650258ade395438600c64820cb19 (patch) | |
tree | d55a952d7cea3c87cc79507535ab695547f74db1 /spec/tasks | |
parent | 1ef3b3efbddd6c4a81102acf940674d80e0c0a8d (diff) | |
download | gitlab-ce-2efe4a13b6be650258ade395438600c64820cb19.tar.gz |
Fix static analysis failure
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/db_rake_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/db_rake_spec.rb b/spec/tasks/gitlab/db_rake_spec.rb index 81b9ac94ff3..b81aea23306 100644 --- a/spec/tasks/gitlab/db_rake_spec.rb +++ b/spec/tasks/gitlab/db_rake_spec.rb @@ -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) |