Sha256: 448902732f63f7d6b1abd37c5d2709da1845ee19f4f796a3d0b573f07b02bd14
Contents?: true
Size: 644 Bytes
Versions: 5
Compression:
Stored size: 644 Bytes
Contents
require File.join(File.dirname(__FILE__), 'spec_helper.rb') describe Sequel::Database do specify "should provide disconnect functionality" do INTEGRATION_DB.test_connection INTEGRATION_DB.pool.size.should == 1 INTEGRATION_DB.disconnect INTEGRATION_DB.pool.size.should == 0 end specify "should raise Sequel::DatabaseError on invalid SQL" do proc{INTEGRATION_DB << "SELECT"}.should raise_error(Sequel::DatabaseError) end specify "should not have the connection pool swallow non-StandardError based exceptions" do proc{INTEGRATION_DB.pool.hold{raise Interrupt, "test"}}.should raise_error(Interrupt) end end
Version data entries
5 entries across 5 versions & 1 rubygems