Sha256: 3fd5a2b1f709c0db9ac25a5b1bb78527a1177dcfffa052ef141365f64b7f2c67
Contents?: true
Size: 992 Bytes
Versions: 4
Compression:
Stored size: 992 Bytes
Contents
require 'rubygems' require 'bundler/setup' $:.unshift File.expand_path('../../lib/', __FILE__) ROOT = File.expand_path('../..', __FILE__) Bundler.require(:default, :test, :development) SimpleCov.start 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pulse_meter_core-0.5.2 | spec/spec_helper.rb |
pulse_meter_core-0.5.1 | spec/spec_helper.rb |
pulse_meter_core-0.5.0 | spec/spec_helper.rb |
pulse_meter_core-0.4.13 | spec/spec_helper.rb |