Sha256: 5a145c1be754bfb01bba122064b963896cd4dcbfa7dd1832724bf323db33e76f

Contents?: true

Size: 563 Bytes

Versions: 10

Compression:

Stored size: 563 Bytes

Contents

require "cases/helper"
require "models/developer"

class PreparedStatementsTest < ActiveRecord::PostgreSQLTestCase
  fixtures :developers

  def setup
    @default_prepared_statements = Developer.connection_config[:prepared_statements]
    Developer.connection_config[:prepared_statements] = false
  end

  def teardown
    Developer.connection_config[:prepared_statements] = @default_prepared_statements
  end

  def nothing_raised_with_falsy_prepared_statements
    assert_nothing_raised do
      Developer.where(id: 1)
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.4.1-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.4.0-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.3.2-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.2.0-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.1.0-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.5-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.4-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.3-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.2-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb