Sha256: 03310e5b514405342e57c6853b57b046dd72d642dd38c7268a8105c2e524a7b1
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
require 'sandthorn_driver_sequel_2' require 'sandthorn_driver_sequel_2/migration' require 'ap' require 'uuidtools' # This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.filter_run_excluding benchmark: true config.order = 'random' end def prepare_for_test context: :test migrator = SandthornDriverSequel2::Migration.new url: event_store_url, context: context migrator.migrate! migrator.send(:clear_for_test) end def event_store_url "sqlite://spec/db/event_store.sqlite3" #"postgres://morganhallgren@localhost:5432/test_1" end def event_store context: :test SandthornDriverSequel2::EventStore.new url: event_store_url, context: context end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sandthorn_driver_sequel_2-0.0.2 | spec/spec_helper.rb |
sandthorn_driver_sequel_2-0.0.1 | spec/spec_helper.rb |