Sha256: 66effaa2a6b297e94915babf54a4dd941c9e0cbc26e8ec2d4b49bf32d632dcf9
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 Bytes
Contents
if defined?(JRUBY_VERSION) require 'spec_helper' require 'lib/apartment/adapters/jdbc_mysql_adapter' describe Apartment::Adapters::JDBCMysqlAdapter do let(:config) { Apartment::Test.config['connections']['mysql'] } subject { Apartment::Database.jdbc_mysql_adapter config.symbolize_keys } def database_names ActiveRecord::Base.connection.execute("SELECT schema_name FROM information_schema.schemata").collect { |row| row['schema_name'] } end let(:default_database) { subject.process { ActiveRecord::Base.connection.current_database } } it_should_behave_like "a generic apartment adapter" it_should_behave_like "a connection based apartment adapter" end end
Version data entries
4 entries across 4 versions & 1 rubygems