Sha256: 05f49dc57ac9aa7fdc78846f0a03f484844f1addc74d080b1d065377bd0c12d3
Contents?: true
Size: 1.4 KB
Versions: 25
Compression:
Stored size: 1.4 KB
Contents
unless postgresql? describe 'Ridgepole::Client#diff -> migrate' do context 'when table already defined' do let(:dsl) { <<-RUBY create_table "employees", primary_key: "emp_no", force: :cascade do |t| t.date "birth_date", null: false t.string "first_name", limit: 14, null: false t.string "last_name", limit: 16, null: false t.string "gender", limit: 1, null: false t.date "hire_date", null: false t.integer "age", unsigned: true, null: false t.date "updated_at" end create_table "employees", primary_key: "emp_no", force: :cascade do |t| t.date "birth_date", null: false t.string "first_name", limit: 14, null: false t.string "last_name", limit: 16, null: false t.string "gender", limit: 1, null: false t.date "hire_date", null: false t.integer "age", unsigned: true, null: false t.date "updated_at" end RUBY } subject { client } it { expect { subject.diff(dsl) }.to raise_error('Table `employees` already defined') } end end end
Version data entries
25 entries across 25 versions & 1 rubygems