diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-26 11:36:01 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-26 11:36:01 +0300 |
commit | 0f9fbae78a51f7bf4df50d96060087e1cf903b05 (patch) | |
tree | 0563abb70a86704aa29c2ddfc5abf87de94684f4 /spec/migrations | |
parent | f7aba153164618522232c912eb833bd7596f5f53 (diff) |
Add migrations helpers to simplify writing migration specs
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/migrate_pipeline_stages_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/migrations/migrate_pipeline_stages_spec.rb b/spec/migrations/migrate_pipeline_stages_spec.rb index d6d26ab52ad..4a469174b9e 100644 --- a/spec/migrations/migrate_pipeline_stages_spec.rb +++ b/spec/migrations/migrate_pipeline_stages_spec.rb @@ -3,23 +3,6 @@ require Rails.root.join('db', 'migrate', '20170525132202_migrate_pipeline_stages describe MigratePipelineStages, :migration, schema: 20170523091700 do ## - # TODO, extract to migrations helper - # - def table(name) - Class.new(ActiveRecord::Base) { self.table_name = name } - end - - def migrations_paths - ActiveRecord::Migrator.migrations_paths - end - - def migrate! - ActiveRecord::Migrator.up(migrations_paths) do |migration| - migration.name == described_class.name - end - end - - ## # Create test data # before do |