spec/postgresql/diff/diff_spec.rb in ridgepole-0.6.6 vs spec/postgresql/diff/diff_spec.rb in ridgepole-0.7.0.alpha

- old
+ new

@@ -169,10 +169,13 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false end EOS + # XXX: + before { client } + it "doesn't warn anything" do expect(Ridgepole::Logger.instance).to_not receive(:warn) delta = subject.diff(actual_dsl, expected_dsl) expect(delta).to be_differ expect(delta.script).to_not include('after') @@ -192,9 +195,12 @@ t.integer "age", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end EOS + + # XXX: + before { client } it 'warns position' do expect(Ridgepole::Logger.instance).to receive(:warn).with(/PostgreSQL doesn't support adding a new column .* users\.name/) expect(Ridgepole::Logger.instance).to receive(:warn).with(/PostgreSQL doesn't support adding a new column .* users\.age/) expect(Ridgepole::Logger.instance).to_not receive(:warn)