test/AddRemoveUserTest.rb in rubyfb-0.5.9 vs test/AddRemoveUserTest.rb in rubyfb-0.6
- old
+ new
@@ -30,9 +30,16 @@
def test01
sm = ServiceManager.new('localhost')
sm.connect(DB_USER_NAME, DB_PASSWORD)
+ begin
+ ru = RemoveUser.new('newuser')
+ ru.execute(sm)
+ sleep(3)
+ rescue
+ end
+
au = AddUser.new('newuser', 'password', 'first', 'middle', 'last')
au.execute(sm)
sleep(3)
cxn = @database.connect('newuser', 'password')