diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /spec/migrations/cleanup_optimistic_locking_nulls_spec.rb | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/migrations/cleanup_optimistic_locking_nulls_spec.rb')
-rw-r--r-- | spec/migrations/cleanup_optimistic_locking_nulls_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/migrations/cleanup_optimistic_locking_nulls_spec.rb b/spec/migrations/cleanup_optimistic_locking_nulls_spec.rb index d32a374b914..6e541c903ff 100644 --- a/spec/migrations/cleanup_optimistic_locking_nulls_spec.rb +++ b/spec/migrations/cleanup_optimistic_locking_nulls_spec.rb @@ -4,11 +4,10 @@ require 'spec_helper' require Rails.root.join('db', 'post_migrate', '20200128210353_cleanup_optimistic_locking_nulls') describe CleanupOptimisticLockingNulls do - TABLES = %w(epics merge_requests issues).freeze - TABLES.each do |table| - let(table.to_sym) { table(table.to_sym) } - end - let(:tables) { TABLES.map { |t| method(t.to_sym).call } } + let(:epics) { table(:epics) } + let(:merge_requests) { table(:merge_requests) } + let(:issues) { table(:issues) } + let(:tables) { [epics, merge_requests, issues] } let(:namespaces) { table(:namespaces) } let(:projects) { table(:projects) } |