Sha256: 4d90984037667ce398c8bd2419b8b3f802504a594d460582270855b67d724688
Contents?: true
Size: 1009 Bytes
Versions: 3
Compression:
Stored size: 1009 Bytes
Contents
describe 'Ridgepole::Client#diff -> migrate' do context 'when change column' do let(:actual_dsl) { <<-EOS create_table "salaries", id: false, force: :cascade do |t| t.integer "emp_no", default: 0, null: false t.integer "salary", null: false t.date "from_date", null: false t.date "to_date", null: false end EOS } let(:expected_dsl) { <<-EOS create_table "salaries", id: false, force: :cascade do |t| t.integer "emp_no", null: false t.integer "salary", null: false t.date "from_date", null: false t.date "to_date", null: false end EOS } before { subject.diff(actual_dsl).migrate } subject { client } it { delta = subject.diff(expected_dsl) expect(delta.differ?).to be_truthy expect(subject.dump).to match_ruby actual_dsl delta.migrate expect(subject.dump).to match_ruby expected_dsl } end end
Version data entries
3 entries across 3 versions & 1 rubygems