spec/tests/schema_spec.rb in torque-postgresql-2.4.0 vs spec/tests/schema_spec.rb in torque-postgresql-2.4.1

- old
+ new

@@ -71,9 +71,18 @@ it 'dumps tables on whitelisted schemas' do expect(dump_result).to match /create_table \"users\",.*schema: +"internal"/ end end + + it 'does not affect serial ids' do + connection.create_table(:primary_keys, id: :serial) do |t| + t.string :title + end + + parts = '"primary_keys", id: :serial, force: :cascade' + expect(dump_result).to match(/create_table #{parts} do /) + end end context 'on relation' do let(:model) { Internal::User }