Sha256: b0e35e58238171ce5d714f27839ad37668b31220e91d1b9619bda5935703aef9

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

require 'spec_helper'
require 'apartment/adapters/mysql_adapter'

describe Apartment::Adapters::MysqlAdapter 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

1 entries across 1 versions & 1 rubygems

Version Path
apartment-0.15.0 spec/adapters/mysql_adapter_spec.rb