Sha256: cc2464a7d66521bc214d68bd2eb6925e11a621e71f7abc24c3afcbfc0fee7941
Contents?: true
Size: 709 Bytes
Versions: 3
Compression:
Stored size: 709 Bytes
Contents
describe 'Ridgepole::Client#diff -> migrate' do context 'integer/limit:8 = bigint' do let(:dsl) { erbh(<<-EOS) create_table "salaries", id: false, force: :cascade do |t| t.integer "emp_no", limit: 8, null: false t.float "salary", <%= i cond('< 5.2.0.beta2', limit: 24) %>, null: false t.date "from_date", null: false t.date "to_date", null: false end EOS } before { subject.diff(dsl).migrate } subject { client } it { expect(subject.dump).to match_ruby dsl.sub(/t.integer "emp_no", limit: 8/, 't.bigint "emp_no"') delta = subject.diff(dsl) expect(delta.differ?).to be_falsey } end end
Version data entries
3 entries across 3 versions & 1 rubygems