Maintenance: Leaking DB changes of tests cause following tests to fail.
This commit is contained in:
parent
f5dc00e6d5
commit
3533339e7b
3 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
require 'rails_helper'
|
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) }
|
subject(:knowledge_base) { create(:knowledge_base) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Issue2368AddIndicesToHistoriesAndTickets, type: :db_migration do
|
RSpec.describe Issue2368AddIndicesToHistoriesAndTickets, type: :db_migration, db_strategy: :reset do
|
||||||
self.use_transactional_tests = false # see comments on #without_index method
|
|
||||||
|
|
||||||
before { without_index(table, column: columns) }
|
before { without_index(table, column: columns) }
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Issue2867FooterHeaderPublicLink, type: :db_migration do
|
RSpec.describe Issue2867FooterHeaderPublicLink, type: :db_migration, db_strategy: :reset do
|
||||||
self.use_transactional_tests = false # see comments on #without_index method
|
|
||||||
|
|
||||||
before { without_column(table, column: column) }
|
before { without_column(table, column: column) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue