spec/support/migrations_helper.rb
# Default subject for migration tests
# It expect the migration to be specified (in a `let` clause)
# @return [TestMigration]
Default subject for migration tests
It expect the migration to be specified (in a `let` clause)
Default subject for migration tests It expect the migration to be specified ( in a ` let ` clause )
def subject
    @subject ||= begin
      raise NoMethodError, <<~MSG.squish unless respond_to?(:migration)
        Use `let(:migration) { ... }` with a Ruby code for migration
      MSG
      data = self.class.metadata.slice(:verbose)
      TestMigration.new(migration, data)
    end
  end
def subject @subject ||= begin raise NoMethodError , <<~MSG . squish unless respond_to? ( :migration ) 
        Use `let(:migration) { ... }` with a Ruby code for migration
       MSG data = self . class . metadata . slice ( :verbose ) TestMigration . new ( migration , data ) end end
Default subject for migration tests
It expect the migration to be specified (in a `let` clause)
Default subject for migration tests It expect the migration to be specified ( in a ` let ` clause )
None
TestMigration