Sha256: d81ffaca966384d339d690122d8cbeefe3615b920e0d6401508f7365dd44da26

Contents?: true

Size: 747 Bytes

Versions: 11

Compression:

Stored size: 747 Bytes

Contents

# frozen_string_literal: true

$: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), '..', 'lib')
require 'thin'
require 'lib/fake_async_middleware'
require 'message_bus'

require 'minitest/autorun'
require 'minitest/global_expectations'

require_relative "helpers"

CURRENT_BACKEND = (ENV['MESSAGE_BUS_BACKEND'] || :redis).to_sym

require "message_bus/backends/#{CURRENT_BACKEND}"
BACKEND_CLASS = MessageBus::BACKENDS.fetch(CURRENT_BACKEND)

puts "Running with backend: #{CURRENT_BACKEND}"

def test_only(*backends)
  skip "Test doesn't apply to #{CURRENT_BACKEND}" unless backends.include?(CURRENT_BACKEND)
end

def test_never(*backends)
  skip "Test doesn't apply to #{CURRENT_BACKEND}" if backends.include?(CURRENT_BACKEND)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
message_bus-4.3.8 spec/spec_helper.rb
message_bus-4.3.7 spec/spec_helper.rb
message_bus-4.3.6 spec/spec_helper.rb
message_bus-4.3.4 spec/spec_helper.rb
message_bus-4.3.3 spec/spec_helper.rb
message_bus-4.3.2 spec/spec_helper.rb
message_bus-4.3.1 spec/spec_helper.rb
message_bus-4.3.0 spec/spec_helper.rb
message_bus-4.2.0 spec/spec_helper.rb
message_bus-4.1.0 spec/spec_helper.rb
message_bus-4.0.0 spec/spec_helper.rb