Sha256: 3f239a281f1db4dce0ec2cf9a8d2dd8c36b5e07b41b3cd3dd72e061a47b74f5c
Contents?: true
Size: 898 Bytes
Versions: 21
Compression:
Stored size: 898 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe RubyPGExtras do RubyPGExtras::QUERIES.each do |query_name| it "#{query_name} description can be read" do expect do RubyPGExtras.description_for( query_name: query_name ) end.not_to raise_error end end PG_STATS_DEPENDENT_QUERIES = %i(calls outliers) (RubyPGExtras::QUERIES - PG_STATS_DEPENDENT_QUERIES).each do |query_name| it "#{query_name} query can be executed" do expect do RubyPGExtras.run_query( query_name: query_name, in_format: :hash ) end.not_to raise_error end end describe "#database_url=" do it "setting custom database URL works" do RubyPGExtras.database_url = ENV.fetch("DATABASE_URL") expect do RubyPGExtras.bloat(in_format: :hash) end.not_to raise_error end end end
Version data entries
21 entries across 21 versions & 1 rubygems