Sha256: 7af55d805d335a38cab09a052cac62e6bd7e97e3dc09ccdaa5431dd7482f0e7f
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
require "spec_helper" describe Baza::Driver::Pg::Table do let(:constant) do const_name = "InfoPg" require StringCases.camel_to_snake(const_name) raise "Constant was not defined: '#{const_name}'." unless Baza.const_defined?(const_name) Baza.const_get(const_name) end let(:driver) { constant.new } let(:db) { driver.db } describe "#native?" do it "returns true if the table is 'pg_stat_statements'-table" do test_table = Baza::Driver::Pg::Table.new(driver: driver, data: {table_name: "pg_stat_statements"}) expect(test_table.native?).to eq true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.38 | spec/drivers/pg/table_spec.rb |
baza-0.0.37 | spec/drivers/pg/table_spec.rb |