Sha256: eb9fd17319873a72a63e1fe2d11073e00b4e9992ee1d97e63bfd4555e8695a9d
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
# 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 require 'coveralls' require "ap" require "bundler" require "sandthorn_driver_sequel" Bundler.require Coveralls.wear! module Helpers def class_including(mod) Class.new.tap {|c| c.send :include, mod } end end RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.filter_run_excluding benchmark: true # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' config.before(:each) { sqlite_store_setup } end def spec_db "sqlite://spec/db/sequel_driver.sqlite3" end def sqlite_store_setup url = spec_db catch_all_config = [ { driver: SandthornDriverSequel.driver_from_url(url: url) } ] Sandthorn.configuration = catch_all_config migrator = SandthornDriverSequel::Migration.new url: url SandthornDriverSequel.migrate_db url: url migrator.send(:clear_for_test) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sandthorn-0.5.1 | spec/spec_helper.rb |