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