Sha256: 19a3ebcc249b4f0b3f9513b14845f977face0c956fe7ebde5a89ee4adcf37f89

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 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(:suite) { $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
sqs_web-0.0.4 spec/support/fake_sqs.rb
sqs_web-0.0.3 spec/support/fake_sqs.rb
sqs_web-0.0.2 spec/support/fake_sqs.rb