test/TransactionTest.rb in rubyfb-0.5.4 vs test/TransactionTest.rb in rubyfb-0.5.5
- old
+ new
@@ -1,13 +1,13 @@
#!/usr/bin/env ruby
-require 'TestSetup'
+require './TestSetup'
require 'test/unit'
require 'rubygems'
-require 'fireruby'
+require 'rubyfb'
-include FireRuby
+include Rubyfb
class TransactionTest < Test::Unit::TestCase
CURDIR = "#{Dir.getwd}"
DB_FILE = "#{CURDIR}#{File::SEPARATOR}tx_unit_test.fdb"
@@ -92,11 +92,11 @@
def test02
sql = []
sql.push("UPDATE RDB$EXCEPTIONS SET RDB$MESSAGE = 'WoooHooo'"\
"WHERE RDB$EXCEPTION_NAME = 'Lalala'")
- sql.push("SELECT RDB$FIELD_NAME FROM RDB$FIELDS")
+ sql.push("SELECT * FROM RDB$DATABASE")
@transactions.push(Transaction.new(@connections[0]))
assert(@transactions[0].execute(sql[0]) == 0)
r = @transactions[0].execute(sql[1])
assert(r != nil)
@@ -105,8 +105,8 @@
total = 0
@transactions[0].execute(sql[1]) do |row|
total += 1
end
- assert(total == 88)
+ assert(total == 1)
end
end