Sha256: b900e78c0ac524d229a9179e5807eefb6d18025948bb78dae51b0c70d292fb11
Contents?: true
Size: 1.19 KB
Versions: 9
Compression:
Stored size: 1.19 KB
Contents
if mysql_awesome_enabled? describe 'Ridgepole::Client#dump' do let(:actual_dsl) { <<-'RUBY' create_table "books", force: true, 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 RUBY } context 'when without table options' do let(:expected_dsl) { <<-RUBY create_table "books", force: true do |t| t.string "title", null: false t.integer "author_id", null: false t.datetime "created_at" t.datetime "updated_at" end RUBY } before { subject.diff(actual_dsl).migrate } subject { client } it { expect(subject.dump).to eq expected_dsl.strip_heredoc.strip } end context 'when with table options' do before { subject.diff(actual_dsl).migrate } subject { client(dump_without_table_options: false) } it { expect(subject.dump).to eq actual_dsl.strip_heredoc.strip } end end end
Version data entries
9 entries across 9 versions & 1 rubygems