Sha256: fa2a5deb1fdd4de79c37c4f25bce33fb0f83411fb6c2280e2bf546e9d4315b2d

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

require 'docket'
require 'fakeredis'

$storage = Docket::Storage::Daybreak.new('/tmp/docket_spec.rb')
RSpec.configure do |config|
  config.color = 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.closed?
    $storage.close
    $storage = Docket::Storage::Daybreak.new('/tmp/docket_spec.rb')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docket-0.2.1 spec/spec_helper.rb