test/CharacterSetTest.rb in rubyfb-0.5.4 vs test/CharacterSetTest.rb in rubyfb-0.5.5

- old
+ new

@@ -1,13 +1,14 @@ #!/usr/bin/env ruby +# encoding: windows-1251 -require 'TestSetup' +require './TestSetup' require 'test/unit' require 'rubygems' -require 'fireruby' +require 'rubyfb' -include FireRuby +include Rubyfb class CharacterSetTest < Test::Unit::TestCase CURDIR = "#{Dir.getwd}" DB_FILE = "#{CURDIR}#{File::SEPARATOR}cxnarset_unit_test.fdb" CHAR_SET = 'WIN1251' @@ -37,14 +38,14 @@ db.character_set = 'ASCII' assert(db.character_set == 'ASCII') end def test02 - text = "?" db = Database.new(DB_FILE, CHAR_SET) begin + win1251_str = '' db.connect("SYSDBA", "masterkey") do |cxn| cxn.start_transaction do |tr| cxn.execute("CREATE TABLE SAMPLE_TABLE(SAMPLE_FIELD VARCHAR(100))",tr) end cxn.start_transaction do |tr| @@ -54,10 +55,10 @@ # here we have an exception: some_var = row['SAMPLE_FIELD'] end end end - rescue => error - assert("Character set unit test failure.", false) +# rescue => error +# assert("Character set unit test failure.", false) end end end