Sha256: 318429b0a7cdfb834f341097f392a5ce910753736ed0642889ef6c162d228e5e
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true require "cases/helper" require "models/computer" require "models/developer" class PreparedStatementsDisabledTest < ActiveRecord::PostgreSQLTestCase fixtures :developers def setup @conn = ActiveRecord::Base.establish_connection :arunit_without_prepared_statements end def teardown @conn.release_connection ActiveRecord::Base.establish_connection :arunit end def test_select_query_works_even_when_prepared_statements_are_disabled assert_not Developer.connection.prepared_statements david = developers(:david) assert_equal david, Developer.where(name: "David").last # With Binds assert_operator Developer.count, :>, 0 # Without Binds end end
Version data entries
4 entries across 4 versions & 1 rubygems