spec/mysql/migrate/migrate_empty_spec.rb in ridgepole-0.7.3.beta vs spec/mysql/migrate/migrate_empty_spec.rb in ridgepole-0.7.3.beta2

- old
+ new

@@ -1,10 +1,10 @@ describe 'Ridgepole::Client#diff -> migrate' do context 'when database is empty' do let(:actual_dsl) { '' } - let(:expected_dsl) { - erbh(<<-EOS) + let(:expected_dsl) do + erbh(<<-ERB) create_table "clubs", force: :cascade do |t| t.string "name", default: "", null: false t.index ["name"], name: "idx_name", unique: true, <%= i cond(5.0, using: :btree) %> end @@ -58,11 +58,11 @@ t.string "title", limit: 50, null: false t.date "from_date", null: false t.date "to_date" t.index ["emp_no"], name: "emp_no", <%= i cond(5.0, using: :btree) %> end - EOS - } + ERB + end subject { client } it { delta = subject.diff(expected_dsl)