Sha256: a286362ab2bfcf611960663165bf27486ae8137bc3c4cd25b0bf63b791bb3c60

Contents?: true

Size: 463 Bytes

Versions: 21

Compression:

Stored size: 463 Bytes

Contents

require 'spec_helper'

if Rails::VERSION::MAJOR >= 5
  subject = DataMigrate::MigrationFive
else
  subject = DataMigrate::Migration
end

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

  it "uses correct index name" do
    expect(subject).to receive(:table_name_prefix) { "" }
    expect(subject).to receive(:table_name_suffix) { "" }
    expect(subject.primary_key).to eq("version")
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
data_migrate-6.4.0 spec/data_migrate/migration.rb