Sha256: 2119638183ae526c9eadf21bd214360c8cbc2b6a0b7ca9e8150de7fd3dea121d

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

require 'coverage_helper'
require 'restruct'
require 'minitest/autorun'
require 'turn'
require 'pry-nav'

Turn.config do |c|
  c.format = :pretty
  c.natural = true
  c.ansi = true
end

class Minitest::Spec
  def redis
    Restruct.redis
  end

  after do
    redis.call('KEYS', Restruct::Id.new(:restruct)['*']).each { |k| redis.call 'DEL', k }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restruct-0.0.3 spec/minitest_helper.rb
restruct-0.0.2 spec/minitest_helper.rb
restruct-0.0.1 spec/minitest_helper.rb