Sha256: 4e299af128159e82d550fcdc4f5f1aef843f72417c6591ba3d189ad016a891e9
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
require 'helper' # just to be able to steal the config ActiveRecord::Base.establish_connection( 'adapter' => 'mysql2', '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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mysql2xxxx-0.0.3 | test/test_active_record_config_stealing.rb |
mysql2xxxx-0.0.2 | test/test_active_record_config_stealing.rb |
mysql2xxxx-0.0.1 | test/test_active_record_config_stealing.rb |