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