Sha256: 6b2ac716f0134fe96d767fb0f7fd81ca4b6e58ef2357a899d4ea3e7b646c8fe2

Contents?: true

Size: 477 Bytes

Versions: 26

Compression:

Stored size: 477 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.index_name).to eq("unique_data_migrations")
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
data_migrate-6.3.0 spec/data_migrate/migration.rb
data_migrate-6.2.0 spec/data_migrate/migration.rb
data_migrate-6.1.0 spec/data_migrate/migration.rb
data_migrate-6.0.7 spec/data_migrate/migration.rb
data_migrate-6.0.6 spec/data_migrate/migration.rb
data_migrate-6.0.5 spec/data_migrate/migration.rb
data_migrate-6.0.4.beta spec/data_migrate/migration.rb
data_migrate-6.0.3.beta spec/data_migrate/migration.rb
data_migrate-6.0.1.beta spec/data_migrate/migration.rb
data_migrate-6.0.0.beta spec/data_migrate/migration.rb
data_migrate-5.3.2 spec/data_migrate/migration.rb
data_migrate-5.3.1 spec/data_migrate/migration.rb
data_migrate-5.3.0 spec/data_migrate/migration.rb
data_migrate-5.2.0 spec/data_migrate/migration.rb
data_migrate-5.1.0 spec/data_migrate/migration.rb
data_migrate-5.0.2 spec/data_migrate/migration.rb
data_migrate-5.0.0 spec/data_migrate/migration.rb
data_migrate-4.0.0 spec/data_migrate/migration.rb
data_migrate-3.5.0 spec/data_migrate/migration.rb
data_migrate-3.4.0 spec/data_migrate/migration.rb