Cannot understand why this error is being raised. Any help is
appreciated. Please find the code listed below.

    def open
      get_connection
    end

    protected
    def  get_connection
      @busy_mutex.synchronize {
        while @free_connections.empty?
          sleep(0.001)
        end
        @free_connections.pop
      }
    end

Test

  def test_open
    assert_nothing_raised @pool.open
  end

Error

(in C:/Users/venkat/Documents/Projects/RuBravo/rorm)

1) Failure:
test_open(Test_Connection_Provider):
#<Rorm::Connection:0x4dee870>. Exception raised: Class: <LocalJumpError>
Message: <"no block given"> ---Backtrace---
./test/test_connection_provider.rb:25:in `test_open'
C:/Users/venkat/.netbeans/6.7/nb_suite_runner.rb:56:in `run'
C:/Users/venkat/.netbeans/6.7/nb_suite_runner.rb:50:in `each'
C:/Users/venkat/.netbeans/6.7/nb_suite_runner.rb:50:in `run'
C:/Users/venkat/.netbeans/6.7/nb_test_runner.rb:63:in `start'
C:/Users/venkat/.netbeans/6.7/nb_test_runner.rb:99:in `run'
---------------
./test/test_connection_provider.rb:25:in `test_open'


Finished in 9.851 seconds.
4 tests, 1 failures, 0 errors

Thanks
Venkat
-- 
Posted via http://www.ruby-forum.com/.