Sha256: fe8bb1e8bb70963a9388d8a223f760b2679f41d19b6a629eaf54e0dd295f1fd2

Contents?: true

Size: 987 Bytes

Versions: 1

Compression:

Stored size: 987 Bytes

Contents

require 'rubygems'
require 'simplecov'
SimpleCov.start

$:.unshift File.expand_path('../../lib/', __FILE__)

ROOT = File.expand_path('../..', __FILE__)

Bundler.require(:default, :test, :development)


require 'pulse_meter_core'
PulseMeter.redis = MockRedis.new

Dir['spec/support/**/*.rb'].each{|f| require File.join(ROOT, f) }
Dir['spec/shared_examples/**/*.rb'].each{|f| require File.join(ROOT,f)}


require 'aquarium'
include Aquarium::Aspects

Aspect.new :after, :calls_to => [:event, :event_at], :for_types => [PulseMeter::Sensor::Base, PulseMeter::Sensor::Timeline] do |jp, obj, *args|
  PulseMeter.command_aggregator.wait_for_pending_events
end

PulseMeter.command_aggregator.max_queue_length = 20

RSpec.configure do |config|
  config.before(:each) do
    PulseMeter.redis = MockRedis.new
    Timecop.return
    PulseMeter.logger = Logger.new("/dev/null")
  end
  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true
  config.include(Matchers)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pulse_meter_core-0.5.3 spec/spec_helper.rb