An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: write database to a file, delete it before running

We'll need multiple process access to it in the future.

Also disable ActiveRecord migration verbosity since it will run
every time.

+6 -1
+1 -1
db/config.yml
··· 6 6 7 7 test: 8 8 adapter: sqlite3 9 - database: ":memory:" 9 + database: "db/test.sqlite3" 10 10 pool: 5 11 11 timeout: 5000 12 12
+5
spec/spec_helper.rb
··· 9 9 require File.realpath(File.dirname(__FILE__) + "/../lib/rubywarden.rb") 10 10 require "#{APP_ROOT}/lib/app.rb" 11 11 12 + if File.exist?(_f = ActiveRecord::Base.connection_config[:database]) 13 + File.unlink(_f) 14 + end 15 + 16 + ActiveRecord::Migration.verbose = false 12 17 ActiveRecord::Migrator.up "db/migrate" 13 18 14 19 # in case migrations changed what we're testing