spec/spec_helper.rb in rest-assured-2.0.2 vs spec/spec_helper.rb in rest-assured-2.1.0
- old
+ new
@@ -18,10 +18,15 @@
require 'capybara/rspec'
require 'rack/test'
require 'awesome_print'
require 'rest-assured/config'
-DB_OPTS = { :adapter => 'sqlite' }
+DB_OPTS = {
+ adapter: 'postgres',
+ dbhost: ENV.fetch('DB_HOST', 'localhost'),
+ dbport: ENV.fetch('DB_PORT', 5432),
+ dbuser: ENV.fetch('DB_USER', 'postgres')
+}
RestAssured::Config.build(DB_OPTS)
require 'rest-assured'
require 'rest-assured/application'
require 'shoulda/matchers'