Disable transaction in specs for some migrations
This commit is contained in:
parent
3447f97b44
commit
3a3dd53920
|
@ -1,6 +1,6 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces do
|
describe Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces, :truncate do
|
||||||
let(:migration) { FakeRenameReservedPathMigrationV1.new }
|
let(:migration) { FakeRenameReservedPathMigrationV1.new }
|
||||||
let(:subject) { described_class.new(['the-path'], migration) }
|
let(:subject) { described_class.new(['the-path'], migration) }
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require Rails.root.join('db', 'post_migrate', '20170406142253_migrate_user_project_view.rb')
|
require Rails.root.join('db', 'post_migrate', '20170406142253_migrate_user_project_view.rb')
|
||||||
|
|
||||||
describe MigrateUserProjectView do
|
describe MigrateUserProjectView, :truncate do
|
||||||
let(:migration) { described_class.new }
|
let(:migration) { described_class.new }
|
||||||
let!(:user) { create(:user) }
|
let!(:user) { create(:user) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue