spec/adapters/mysql2_adapter_spec.rb in apartment-0.22.1 vs spec/adapters/mysql2_adapter_spec.rb in apartment-0.23.0
- old
+ new
@@ -1,11 +1,10 @@
require 'spec_helper'
require 'apartment/adapters/mysql2_adapter'
-describe Apartment::Adapters::Mysql2Adapter do
+describe Apartment::Adapters::Mysql2Adapter, database: :mysql do
unless defined?(JRUBY_VERSION)
- let(:config){ Apartment::Test.config['connections']['mysql'].symbolize_keys }
subject(:adapter){ Apartment::Database.mysql2_adapter config }
def database_names
ActiveRecord::Base.connection.execute("SELECT schema_name FROM information_schema.schemata").collect { |row| row[0] }
end