Sha256: 02077461320b4c87f4f2cd73a901b0be40e03b2f93ace3cf6558b83eb5fefc8b

Contents?: true

Size: 447 Bytes

Versions: 5

Compression:

Stored size: 447 Bytes

Contents

require 'helper'

# just to be able to steal the config
ActiveRecord::Base.establish_connection(
  'adapter' => 'mysql',
  'database' => TEST_DB,
  'username' => MYSQL_USER,
  'password' => MYSQL_PASS
)

class TestActiveRecordConfigStealing < Test::Unit::TestCase
  def test_steals_config
    a = Mysql2xxxx::JSON.new @options.slice(:execute)
    str = a.to_s
    assert str.include?('Acura')
    assert !str.include?('DaimlerChrysler')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mysql2xxxx-0.2.1 test/test_active_record_config_stealing.rb
mysql2xxxx-0.2.0 test/test_active_record_config_stealing.rb
mysql2xxxx-0.1.1 test/test_active_record_config_stealing.rb
mysql2xxxx-0.1.0 test/test_active_record_config_stealing.rb
mysql2xxxx-0.0.4 test/test_active_record_config_stealing.rb