ibruby 0.5.3-i586-linux → 0.5.4-i586-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/ib_lib.so +0 -0
  2. data/test/GeneratorTest.rb +13 -2
  3. metadata +2 -2
Binary file
@@ -36,7 +36,7 @@ class GeneratorTest < Test::Unit::TestCase
36
36
  def test01
37
37
  assert(Generator::exists?('TEST_GEN', @connections[0]) == false)
38
38
  g = Generator::create('TEST_GEN', @connections[0])
39
- assert(Generator::exists?('TEST_GEN', @connections[0]))
39
+ 10.times() { assert(Generator::exists?('TEST_GEN', @connections[0])) }
40
40
  assert(g.last == 0)
41
41
  assert(g.next(1) == 1)
42
42
  assert(g.last == 1)
@@ -46,5 +46,16 @@ class GeneratorTest < Test::Unit::TestCase
46
46
 
47
47
  g.drop
48
48
  assert(Generator::exists?('TEST_GEN', @connections[0]) == false)
49
- end
49
+ end
50
+
51
+ def test02
52
+ 4.times() do
53
+ @connections[0].execute_immediate( 'create table sample(a integer not null)' )
54
+ @connections[0].execute_immediate( 'alter table sample add primary key (a)' )
55
+ assert(Generator::exists?('SAMPLE_GEN', @connections[0]) == false)
56
+ g = Generator::create('SAMPLE_GEN', @connections[0])
57
+ g.drop
58
+ @connections[0].execute_immediate( 'drop table sample' )
59
+ end
60
+ end
50
61
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ibruby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.3
7
- date: 2007-01-05 00:00:00 +13:00
6
+ version: 0.5.4
7
+ date: 2007-01-12 00:00:00 +13:00
8
8
  summary: Ruby interface library for the InterBase database.
9
9
  require_paths:
10
10
  - lib