Sha256: dad15c32d7ad135d4840ff5a03fafe22b8d92aae67d28a4dd9f6695aa21991db

Contents?: true

Size: 762 Bytes

Versions: 3

Compression:

Stored size: 762 Bytes

Contents

require "aws-sdk"
require "fake_sqs/test_integration"

# Aws.config[:credentials] = {
#   :use_ssl           => false,
#   :sqs_endpoint      => "localhost",
#   :sqs_port          => 4568,
#   :access_key_id     => "fake access key",
#   :secret_access_key => "fake secret key",
# }
Aws.config.update(
  region: "us-east-1",
  credentials: Aws::Credentials.new("fake", "fake"),
)

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,
)

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

3 entries across 3 versions & 1 rubygems

Version Path
fake_sqs-0.3.1 spec/integration_spec_helper.rb
fake_sqs-0.3.0 spec/integration_spec_helper.rb
fake_sqs-0.2.0 spec/integration_spec_helper.rb