Sha256: 4010b78d503e55b2c36caf7f452d8722b314e4e2de8d044a3944ed89e7bedc8a

Contents?: true

Size: 917 Bytes

Versions: 10

Compression:

Stored size: 917 Bytes

Contents

require 'spec_helper'

describe DataMigrate::DataSchemaMigration do
  if DataMigrate::RailsHelper.rails_version_equal_to_or_higher_than_7_1
    let(:connection) { double(:connection) }
    let(:subject) { DataMigrate::DataSchemaMigration.new(connection) }

    describe :table_name do
      it "returns correct table name" do
        expect(subject.table_name).to eq("data_migrations")
      end
    end

    describe :index_name do
      it "returns correct primary key name" do
        expect(subject.primary_key).to eq("version")
      end
    end
  else
    let(:subject) { DataMigrate::DataSchemaMigration }
    describe :table_name do
      it "returns correct table name" do
        expect(subject.table_name).to eq("data_migrations")
      end
    end

    describe :index_name do
      it "returns correct primary key name" do
        expect(subject.primary_key).to eq("version")
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
data_migrate-11.1.0 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-11.0.0 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-11.0.0.rc3 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-11.0.0.rc spec/data_migrate/data_schema_migration_spec.rb
data_migrate-9.4.4 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-9.4.2 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-9.4.1 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-9.4.0 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-9.3.0 spec/data_migrate/data_schema_migration_spec.rb
data_migrate-9.2.0 spec/data_migrate/data_schema_migration_spec.rb