Sha256: 9f0e78c4487331b3c05c0a1e8134c8ce7876b81750475eb0b44bb3c6e850af20
Contents?: true
Size: 712 Bytes
Versions: 11
Compression:
Stored size: 712 Bytes
Contents
describe 'Ridgepole::Client#diff -> migrate' do context 'integer/limit:8 = bigint' do let(:dsl) do erbh(<<-ERB) 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 ERB end 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
11 entries across 11 versions & 1 rubygems