Sha256: f698c22d2beee9653f80453d7a5008e2963b11a72cf106cea0f286aa3401b123

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

require 'docket'
require 'pry'

$storage = Docket::Storage.new('/tmp/docket_spec.rb')

RSpec.configure do |config|
  config.color_enabled = true
  config.formatter = 'documentation'
  config.order = 'random'

  config.before(:suite) do
    $storage.send(:clear!)
  end

  config.after(:suite) do
    $storage.close
  end

end

def reload_storage_connection
  if $storage && !$storage.db.closed?
    $storage.close
    $storage = Docket::Storage.new('/tmp/docket_spec.rb')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docket-0.1.2 spec/spec_helper.rb
docket-0.1.1 spec/spec_helper.rb
docket-0.0.1 spec/spec_helper.rb