Sha256: 52608e27834743afb912a8e3b925cca18e0060e4c855bd6bff63863217f3da28

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

require 'bundler/setup'
require 'mysql2'
require 'minitest/autorun'

if !defined?(Minitest::Test)
  Minitest::Test = MiniTest::Unit::TestCase
end

require_relative 'boot_mysql_env'

def assert_ro(cx, str, bool)
  expected = bool ? 1 : 0
  assert_equal expected,  cx.query("select @@read_only as ro").first['ro'], "#{str} is #{bool ? 'read-write' : 'read-only'} but I expected otherwise!"
end

def master_cut_script
  File.expand_path(File.dirname(__FILE__)) + "/../bin/master_cut"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ar_mysql_flexmaster-1.0.1 test/integration_helper.rb
ar_mysql_flexmaster-1.0.0 test/integration_helper.rb
ar_mysql_flexmaster-0.6.0 test/integration_helper.rb
ar_mysql_flexmaster-0.5.0 test/integration_helper.rb