Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-16 13:49:06 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-16 13:49:06 +0300
commit71564974935feafd3f0025ec51832fcea6cba003 (patch)
tree26f99ab03332970b24df72c557fdb1f5ace186af /spec/spec_helper.rb
parent04f7f394d3825e3290f523dce28d42b7c87fc9bb (diff)
Migrate db schema for context in :migration specs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 3eea39d4bf4..c606030220f 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -132,14 +132,14 @@ RSpec.configure do |config|
Sidekiq.redis(&:flushall)
end
- config.before(:example, :migration) do
+ config.before(:context, :migration) do |example|
ActiveRecord::Migrator
.migrate(migrations_paths, previous_migration.version)
reset_column_in_migration_models
end
- config.after(:example, :migration) do
+ config.after(:context, :migration) do
ActiveRecord::Migrator.migrate(migrations_paths)
reset_column_in_migration_models