Sha256: fa6f051246e7ae758dad426b94c14bd9d04f3c813b0700aa149cf1096bd0b61a
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper')) require 'data_objects/spec/shared/connection_spec' describe DataObjects::Sqlite3::Connection do before :all do @driver = CONFIG.scheme @user = CONFIG.user @password = CONFIG.pass @host = CONFIG.host @port = CONFIG.port @database = CONFIG.database end it_behaves_like 'a Connection' describe 'connecting with busy timeout' do it 'connects with a valid timeout' do expect(DataObjects::Connection.new("#{CONFIG.uri}?busy_timeout=200")).not_to be_nil end it 'raises an error when passed an invalid value' do expect { DataObjects::Connection.new("#{CONFIG.uri}?busy_timeout=stuff") } .to raise_error(ArgumentError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-do_sqlite3-0.11.0 | spec/connection_spec.rb |
sbf-do_sqlite3-0.10.17 | spec/connection_spec.rb |