diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-07-02 22:55:56 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-07-02 22:55:56 +0300 |
commit | 28ac2d304989164a1e9bf6d82fa8106a86a5f688 (patch) | |
tree | aac4469ad80084b1375d79721a3efd31af3aedb6 /spec/migrations | |
parent | 851d19c26023cb977eb29157bc833daab985ba77 (diff) |
Remove old migrations and specs
This removes old migrations that violate the
FactoriesinMigrationSpecs cop
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/remove_project_labels_group_id_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/migrations/remove_project_labels_group_id_spec.rb b/spec/migrations/remove_project_labels_group_id_spec.rb deleted file mode 100644 index 01b09e71d83..00000000000 --- a/spec/migrations/remove_project_labels_group_id_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -# encoding: utf-8 - -require 'spec_helper' -require Rails.root.join('db', 'post_migrate', '20180202111106_remove_project_labels_group_id.rb') - -describe RemoveProjectLabelsGroupId, :delete do - let(:migration) { described_class.new } - let(:group) { create(:group) } # rubocop:disable RSpec/FactoriesInMigrationSpecs - let!(:project_label) { create(:label, group_id: group.id) } # rubocop:disable RSpec/FactoriesInMigrationSpecs - let!(:group_label) { create(:group_label) } # rubocop:disable RSpec/FactoriesInMigrationSpecs - - describe '#up' do - it 'updates the project labels group ID' do - expect { migration.up }.to change { project_label.reload.group_id }.to(nil) - end - - it 'keeps the group labels group ID' do - expect { migration.up }.not_to change { group_label.reload.group_id } - end - end -end |