Sha256: 2f334d6dd5dc29afbde1d3ed1a402fe37028df48cc58fc88e5a46507045e2772
Contents?: true
Size: 1013 Bytes
Versions: 1
Compression:
Stored size: 1013 Bytes
Contents
describe 'Ridgepole::Client#dump' do let(:actual_dsl) { erbh(<<-'EOS') create_table "books", unsigned: true, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='\"london\" bridge \"is\" falling \"down\"'" do |t| t.string "title", null: false t.integer "author_id", null: false t.datetime "created_at" t.datetime "updated_at" end EOS } context 'when without table options' do let(:expected_dsl) { erbh(<<-EOS) create_table "books", <%= i cond('5.1', id: :bigint) %>, unsigned: true, force: :cascade, comment: "\\"london\\" bridge \\"is\\" falling \\"down\\"" do |t| t.string "title", null: false t.integer "author_id", null: false t.datetime "created_at" t.datetime "updated_at" end EOS } before { subject.diff(actual_dsl).migrate } subject { client } it { expect(subject.dump).to match_fuzzy expected_dsl } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ridgepole-0.7.0.alpha | spec/mysql/dump/dump_without_table_options_spec.rb |