Sha256: fed38accffe6ab085554d7c5179db17d78c77ad221ef32e1d03d50dbd0150c2d

Contents?: true

Size: 705 Bytes

Versions: 2

Compression:

Stored size: 705 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2019-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

require 'database_cleaner'
require 'simplecov'
require 'simplecov-console'
require 'redis'
require 'pry'

TEST_PREFIX = 'airspace_test'

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner[:redis].strategy = :truncation, { only: ['airspace_test:*'] }
  end

  config.around(:each) do |example|
    DatabaseCleaner[:redis].cleaning do
      example.run
    end
  end
end

SimpleCov.formatter = SimpleCov::Formatter::Console
SimpleCov.start

require './lib/airspace'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
airspace-1.0.1 spec/spec_helper.rb
airspace-1.0.0 spec/spec_helper.rb