mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
r2992@asus: jeremy | 2005-07-10 02:43:49 -0700
Skip ActiveRecordStore tests if neither SQLite 2 nor 3 is available. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1793 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -18,8 +18,14 @@ begin
|
||||
CGI::Session::ActiveRecordStore::Session.establish_connection(:adapter => 'sqlite3', :dbfile => ':memory:')
|
||||
CGI::Session::ActiveRecordStore::Session.connection
|
||||
rescue Object
|
||||
$stderr.puts 'SQLite 3 unavailable; falling to SQLite 2.'
|
||||
CGI::Session::ActiveRecordStore::Session.establish_connection(:adapter => 'sqlite', :dbfile => ':memory:')
|
||||
$stderr.puts 'SQLite 3 unavailable; falling back to SQLite 2.'
|
||||
begin
|
||||
CGI::Session::ActiveRecordStore::Session.establish_connection(:adapter => 'sqlite', :dbfile => ':memory:')
|
||||
CGI::Session::ActiveRecordStore::Session.connection
|
||||
rescue Object
|
||||
$stderr.puts 'SQLite 2 unavailable; skipping ActiveRecordStore test suite.'
|
||||
raise SystemExit
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user