Skip to content
Browse files

Updated specs to create the SQLite DB if it doesn't exist

  • Loading branch information...
1 parent 51ed19b commit bfc1bee061838c36eda3dd22db22d6996246a4ba Dan Kubb committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/integration/sqlite3_adapter_spec.rb
View
6 spec/integration/sqlite3_adapter_spec.rb
@@ -3,10 +3,14 @@
require ROOT_DIR + 'lib/data_mapper'
+DB_PATH = __DIR__ + 'integration_test.db'
+
begin
require 'do_sqlite3'
- DataMapper.setup(:sqlite3, "sqlite3://#{__DIR__}/integration_test.db")
+ FileUtils.touch DB_PATH
+
+ DataMapper.setup(:sqlite3, "sqlite3://#{DB_PATH}")
describe DataMapper::Adapters::DataObjectsAdapter do

0 comments on commit bfc1bee

Please sign in to comment.
Something went wrong with that request. Please try again.