Sha256: bc545c075c0295c1aa1f62a15c5cd3c4368c4e23c9b3683fa273d883da22d891
Contents?: true
Size: 1.29 KB
Versions: 4
Compression:
Stored size: 1.29 KB
Contents
GEM_ROOT = File.expand_path(File.join(File.dirname(__FILE__),'..')) ENV['RAILS_ENV'] ||= 'test' require 'simplecov' SimpleCov.start do add_filter "/spec/" end require 'pwwka' require 'pwwka/test_handler' require 'active_support/core_ext/hash' # These are required in pwwka proper, but they are guarded to not cause # an error if missing. Requiring here so their absence will fail the tests require 'resque' require 'resque-retry' require 'support/test_configuration' test_configuration = TestConfiguration.new(File.join(GEM_ROOT,"docker-compose.yml")) RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = [:should,:expect] # should is needed to make a resque helper # from resqutils work end config.before(:suite) do Pwwka.configure do |c| c.topic_exchange_name = "topics-test" c.options[:allow_delayed] = true c.requeue_on_error = false c.rabbit_mq_host = "amqp://guest:guest@localhost:#{test_configuration.rabbit_port}" unless ENV["SHOW_PWWKA_LOG"] == "true" c.logger = MonoLogger.new("/dev/null") end end Resque.redis = Redis.new(port: test_configuration.resque_redis_port) end config.order = :random config.filter_run_excluding :legacy end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pwwka-0.10.0 | spec/spec_helper.rb |
pwwka-0.10.0.RC | spec/spec_helper.rb |
pwwka-0.9.0 | spec/spec_helper.rb |
pwwka-0.9.0.RC1 | spec/spec_helper.rb |