Sha256: 7ac474602bc03846a871b573d98a07b31c3bff04534554abf529c4be02f66c7b
Contents?: true
Size: 730 Bytes
Versions: 11
Compression:
Stored size: 730 Bytes
Contents
describe 'Ridgepole::Client#diff -> migrate' do subject { client } context 'when add_index contains expression' do let(:actual_dsl) { '' } let(:expected_dsl) { erbh(<<-ERB) } create_table "users", force: :cascade do |t| t.string "name", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index "lower((name)::text)", name: "index_users_on_lower_name", <%= i cond(5.0, using: :btree) %> end ERB specify do delta = subject.diff(expected_dsl) expect(delta).to be_differ expect(subject.dump).to match_fuzzy(actual_dsl) delta.migrate expect(subject.dump).to match_fuzzy(expected_dsl) end end end
Version data entries
11 entries across 11 versions & 1 rubygems