Sha256: 2b3982208e890ff387cda9afd2a1ad925a52a631a68bf8dfcc0625267da6d984
Contents?: true
Size: 507 Bytes
Versions: 15
Compression:
Stored size: 507 Bytes
Contents
require "cases/helper" require 'models/topic' require 'models/minimalistic' class StoredProcedureTest < ActiveRecord::TestCase fixtures :topics # Test that MySQL allows multiple results for stored procedures if Mysql.const_defined?(:CLIENT_MULTI_RESULTS) def test_multi_results_from_find_by_sql topics = Topic.find_by_sql 'CALL topics();' assert_equal 1, topics.size assert ActiveRecord::Base.connection.active?, "Bad connection use by 'MysqlAdapter.select'" end end end
Version data entries
15 entries across 15 versions & 4 rubygems