Sha256: d4b56309841d814e89831d444a612415c5f817ca8ca6cae0e4a587e12b175cd3

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

require "fake_sqs/test_integration"

db = ENV["SQS_DATABASE"] || ":memory:"
puts "\n\e[34mRunning specs with database \e[33m#{db}\e[0m"
$fake_sqs = FakeSQS::TestIntegration.new(
  database: db,
  sqs_endpoint: "localhost",
  sqs_port: 4568,
)

SqsWeb.options[:aws][:access_key_id] = "fake"
SqsWeb.options[:aws][:secret_access_key] = "fake"
SqsWeb.options[:aws][:endpoint] = $fake_sqs.uri

RSpec.configure do |config|
  config.before(:each, :sqs) { $fake_sqs.start }
  config.before(:each, :sqs) { $fake_sqs.reset }
  config.after(:suite) { $fake_sqs.stop }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sqs_web-0.0.1 spec/support/fake_sqs.rb