From e99639ffbe8217a64d97449113203908ae9a1230 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 8 May 2020 16:25:43 -0500 Subject: [PATCH] Remove the migration_sanity_spec.rb since it's not really useful long-term --- spec/migration/migration_sanity_spec.rb | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 spec/migration/migration_sanity_spec.rb diff --git a/spec/migration/migration_sanity_spec.rb b/spec/migration/migration_sanity_spec.rb deleted file mode 100644 index f135e95a..00000000 --- a/spec/migration/migration_sanity_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -require 'rails_helper' - -describe 'Migration sanity' do - it 'Migrations have a sane timestamp' do - Dir.open(File.join(Rails.root, 'db', 'migrate')) do |dir| - # should be a hash but we don't have in Ruby 2.3 - migration_names = [] - - dir.entries.each do |file| - next unless file != '.' && file != '..' - - ret = file.split('_', 2) - expect(ret[0].length).to eq 14 - expect { Integer(ret[0]) }.to_not raise_error - expect(migration_names).to_not include ret[1] - - migration_names.push(ret[1]) - end - end - end -end