summaryrefslogtreecommitdiff
path: root/spec/integration_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration_helper.rb')
-rw-r--r--spec/integration_helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/integration_helper.rb b/spec/integration_helper.rb
new file mode 100644
index 0000000..0a4247d
--- /dev/null
+++ b/spec/integration_helper.rb
@@ -0,0 +1,13 @@
+require "spec_helper"
+
+RSpec.configure do |config|
+ config.before :all do
+ connection_string = DatabaseConfiguration.new.connection_string
+ @configuration = Humble::Configuration.new(connection_string)
+ @session_factory = @configuration.build_session_factory
+ end
+
+ config.after :each do
+ TestDatabaseGateway.delete_all
+ end
+end