plugins_spec.rb 452 B

1234567891011121314
  1. require_relative 'spec_helper'
  2. describe "Plugins" do
  3. let(:processes) { Helpers::Pgcat.three_shard_setup("sharded_db", 5) }
  4. context "intercept" do
  5. it "will intercept an intellij query" do
  6. conn = PG.connect(processes.pgcat.connection_string("sharded_db", "sharding_user"))
  7. res = conn.exec("select current_database() as a, current_schemas(false) as b")
  8. expect(res.values).to eq([["sharded_db", "{public}"]])
  9. end
  10. end
  11. end