Maintenance: Leaking DB changes of tests cause following tests to fail.

This commit is contained in:
Thorsten Eckel 2020-09-23 09:48:34 +02:00
parent f5dc00e6d5
commit 3533339e7b
3 changed files with 4 additions and 6 deletions

View file

@ -1,6 +1,6 @@
require 'rails_helper'
RSpec.describe Issue2641KbColorChangeLimit, type: :db_migration do
RSpec.describe Issue2641KbColorChangeLimit, type: :db_migration, db_strategy: :reset do
subject(:knowledge_base) { create(:knowledge_base) }
before do

View file

@ -1,7 +1,6 @@
require 'rails_helper'
RSpec.describe Issue2368AddIndicesToHistoriesAndTickets, type: :db_migration do
self.use_transactional_tests = false # see comments on #without_index method
RSpec.describe Issue2368AddIndicesToHistoriesAndTickets, type: :db_migration, db_strategy: :reset do
before { without_index(table, column: columns) }

View file

@ -1,7 +1,6 @@
require 'rails_helper'
RSpec.describe Issue2867FooterHeaderPublicLink, type: :db_migration do
self.use_transactional_tests = false # see comments on #without_index method
RSpec.describe Issue2867FooterHeaderPublicLink, type: :db_migration, db_strategy: :reset do
before { without_column(table, column: column) }