Sha256: ae6ec1695c3b4028b381f0136395875e9210f0ac8d199c302fcc697d7ae7d17a

Contents?: true

Size: 686 Bytes

Versions: 2

Compression:

Stored size: 686 Bytes

Contents

# coding: utf-8
require 'helper'

class TestMysql2xxxx < Test::Unit::TestCase
  def test_1_mysql2json
    a = Mysql2xxxx::JSON.new @options
    str = a.to_s
    assert str.include?('Acura')
    assert str.include?(%q{Citro\u00ebn})
    assert !str.include?('DaimlerChrysler')
  end

  def test_2_mysql2csv
    a = Mysql2xxxx::CSV.new @options
    str = a.to_s
    assert str.include?('Acura')
    assert str.include?('Citroën')
    assert !str.include?('DaimlerChrysler')
  end
  
  def test_3_mysql2xml
    a = Mysql2xxxx::XML.new @options
    str = a.to_s
    assert str.include?('Acura')
    assert str.include?('Citro&#235;n')
    assert !str.include?('DaimlerChrysler')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mysql2xxxx-0.1.1 test/test_mysql2xxxx.rb
mysql2xxxx-0.1.0 test/test_mysql2xxxx.rb