spec/postgresql/migrate/migrate_bigint_spec.rb in ridgepole-0.6.6 vs spec/postgresql/migrate/migrate_bigint_spec.rb in ridgepole-0.7.0.alpha
- old
+ new
@@ -1,23 +1,15 @@
describe 'Ridgepole::Client#diff -> migrate' do
context 'when add bigint column' do
let(:actual_dsl) { '' }
let(:expected_dsl) {
- if condition(:activerecord_5)
- erbh(<<-EOS)
- create_table "bigint_test", id: false, force: :cascade do |t|
- t.bigint "b"
- end
- EOS
- else
- erbh(<<-EOS)
- create_table "bigint_test", id: false, force: :cascade do |t|
- t.integer "b", limit: 8
- end
- EOS
- end
+ erbh(<<-EOS)
+ create_table "bigint_test", id: false, force: :cascade do |t|
+ t.bigint "b"
+ end
+ EOS
}
before { subject.diff(actual_dsl).migrate }
subject { client }
@@ -37,22 +29,14 @@
end
EOS
}
let(:expected_dsl) {
- if condition(:activerecord_5)
- erbh(<<-EOS)
- create_table "bigint_test", id: false, force: :cascade do |t|
- t.bigint "b"
- end
- EOS
- else
- erbh(<<-EOS)
- create_table "bigint_test", id: false, force: :cascade do |t|
- t.integer "b", limit: 8
- end
- EOS
- end
+ erbh(<<-EOS)
+ create_table "bigint_test", id: false, force: :cascade do |t|
+ t.bigint "b"
+ end
+ EOS
}
before { subject.diff(dsl).migrate }
subject { client }