Sha256: 3190b6549e4c0c9cc969295007baeb725844bfe2d52202ee84b75559e3fe79a4
Contents?: true
Size: 727 Bytes
Versions: 36
Compression:
Stored size: 727 Bytes
Contents
require "spec_helper" describe "Simple::SQL.reflection" do describe ".columns" do it "returns the columns of a table in the public schema" do expect(SQL.reflection.columns("users")).to include("first_name") end it "returns the columns of a table in a non-'public' schema" do expect(SQL.reflection.columns("information_schema.tables")).to include("table_name") end end describe ".tables" do it "returns the tables in the public schema" do expect(SQL.reflection.tables).to include("public.users") end it "returns tables in a non-'public' schema" do expect(SQL.reflection.tables(schema: "information_schema")).to include("information_schema.tables") end end end
Version data entries
36 entries across 36 versions & 1 rubygems