Sha256: 68a26dcecefceb040f9a36631848d2bfbd521844fd7e29757ea3ebecb21f8f1f
Contents?: true
Size: 383 Bytes
Versions: 5
Compression:
Stored size: 383 Bytes
Contents
require_relative "test_helper" class SuggestedIndexesTest < Minitest::Test def setup PgHero.reset_query_stats end def test_basic # no pg_stat_statements skip if ENV["TRAVIS_CI"] User.where(email: "person1@example.org").first assert_equal [{table: "users", columns: ["email"]}], PgHero.suggested_indexes.map { |q| q.except(:queries, :details) } end end
Version data entries
5 entries across 5 versions & 1 rubygems