Sha256: 33ecece3c962d9f95cf543cc74d20b7ce5a8706cdbbbf6ffa2dda32a16538665

Contents?: true

Size: 647 Bytes

Versions: 3

Compression:

Stored size: 647 Bytes

Contents

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

AWS.config(
  :use_ssl           => false,
  :sqs_endpoint      => "localhost",
  :sqs_port          => 4568,
  :access_key_id     => "fake access key",
  :secret_access_key => "fake secret key",
)

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

RSpec.configure do |config|

  config.treat_symbols_as_metadata_keys_with_true_values = true
  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.1.0 spec/spec_helper.rb
fake_sqs-0.0.11 spec/spec_helper.rb
fake_sqs-0.0.10 spec/spec_helper.rb