summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-17 11:42:17 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-17 11:42:17 +0200
commit56d24bcf80c7b6e93e298adb8214f4b2e97d094b (patch)
tree8a1b1aa64ef62eea68c5e8e4bf680a556202ea8d /spec/migrations
parentd90b0f8c996906682e5ad9125eb60f6115cce559 (diff)
downloadgitlab-ce-56d24bcf80c7b6e93e298adb8214f4b2e97d094b.tar.gz
Migrate down before each migration unit testbackstage/gb/migrations-tests-schema-version
`migrate!` helper triggers a migration that is under the test, so we need to revert it before each subsequent example. This means that we need to place it in `before(:each, :migration)` hook. We still want to migrate everything up *after* each *context*, so in otherwords we need to place migrate up helper in `before(:context, :migration)`.
Diffstat (limited to 'spec/migrations')
0 files changed, 0 insertions, 0 deletions