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